uv: exception.code isntead of exception.errno

This commit is contained in:
Ryan Dahl 2011-07-05 12:07:30 -07:00
Родитель 32a0752d49
Коммит c0d3f1f485
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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) {
// 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;
}