-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: System Error description incorrectly equates errno and code properties #6649
Comments
Hmmm I'm getting different results:
|
ah scratch that, you're checking errno, not code |
I would say that this is a documentation issue. Want to submit a PR? |
@evanlucas I'm going to say "no". |
@pabigot The value of I don’t think there is a reason not to use |
@addaleax Thanks; with that I can work up some reasonable text. I agree it's a documentation issue and that most users are better off using |
This issue has been inactive for sufficiently long that it seems like perhaps it should be closed. Feel free to re-open (or leave a comment requesting that it be re-opened) if you disagree. I'm just tidying up and not acting on a super-strong opinion or anything like that. |
The documentation for System Errors specifies:
In 4.x and (by inspection) 6.x this is incorrect; the
error.errno
property is an integer error code, as set by this code forErrnoException
insrc/node.cc
:Reproduce with anything like:
The text was updated successfully, but these errors were encountered: