-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
errors,process: migrate to use internal/errors.js #13285
Conversation
lib/internal/errors.js
Outdated
@@ -151,6 +152,7 @@ E('ERR_SOCKET_BAD_TYPE', | |||
E('ERR_SOCKET_CANNOT_SEND', 'Unable to send data'); | |||
E('ERR_SOCKET_BAD_PORT', 'Port should be > 0 and < 65536'); | |||
E('ERR_SOCKET_DGRAM_NOT_RUNNING', 'Not running'); | |||
E('ERR_V8BREAKITERATOR', 'full ICU data not installed. See https://github.com/nodejs/node/wiki/Intl'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
long line here. please line wrap at <= 80 chars.
Running make lint
should catch these :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jasnell Unfortunately, on jslint test, this error is not showed up. Now, this is done. Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a nit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
CI run good, will land tomorrow once 48 hours has passed. |
Actually 48 hours is already up landing. |
Actually looking again as part of landing I think its better to avoid adding: // Flags: --expose-internals and just use TypeError instead of errors.TypeError etc when possible. @sreepurnajasti can you make that change? |
This needs a rebase before it can land. Thank you! |
@sreepurnajasti can you can rebase and remove the use of --expose-internals. |
New CI after rebase: https://ci.nodejs.org/job/node-test-pull-request/8441/ |
@@ -160,6 +161,8 @@ E('ERR_SOCKET_BAD_TYPE', | |||
E('ERR_SOCKET_CANNOT_SEND', 'Unable to send data'); | |||
E('ERR_SOCKET_BAD_PORT', 'Port should be > 0 and < 65536'); | |||
E('ERR_SOCKET_DGRAM_NOT_RUNNING', 'Not running'); | |||
E('ERR_V8BREAKITERATOR', 'full ICU data not installed.' + | |||
'See https://github.com/nodejs/node/wiki/Intl'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be a space after installed.
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch
CI run good, landing. Will add space. |
Landed as 062071a |
PR-URL: #13285 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
lib/internal/process.js
lib/internal/errors.js
ref: #11273