@ -29,7 +29,7 @@ function errnoException(errorno, syscall) {
// Once all of Node is using this function the ErrnoException from
// src/node.cc should be removed.
var e = new Error(syscall + ' ' + errorno);
e.errno = errorno;
e.errno = e.code = errorno;
e.syscall = syscall;
return e;
}
@ -420,7 +420,7 @@ function errnoException(errorno, syscall) {