Skip to content

Commit

Permalink
fixup! lib: correct error.errno to always be numeric
Browse files Browse the repository at this point in the history
  • Loading branch information
joyeecheung committed Jun 12, 2019
1 parent 1b55a0e commit 6612645
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/api/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,8 @@ system error.

The `error.errno` property is a negative number which corresponds
to the error code defined in [`libuv Error handling`].
See the libuv `errno.h` header file (`deps/uv/include/uv/errno.h`
in the Node.js source tree) for details. On Windows the error number
provided by the system will be normalized by libuv.

On Windows the error number provided by the system will be normalized by libuv.

To get the string representation of the error code, use
[`util.getSystemErrorName(error.errno)`].
Expand Down

0 comments on commit 6612645

Please sign in to comment.