uv: exception.code isntead of exception.errno
This commit is contained in:
Родитель
32a0752d49
Коммит
c0d3f1f485
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче