Browse Source

uv: exception.code isntead of exception.errno

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
c0d3f1f485
  1. 2
      lib/dns_uv.js
  2. 2
      lib/net_uv.js

2
lib/dns_uv.js

@ -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;
}

2
lib/net_uv.js

@ -420,7 +420,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;
}

Loading…
Cancel
Save