Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upTracking Issue: Migrate errors to internal/errors.js #11273
Comments
mscdex
added
the
errors
label
Feb 9, 2017
This comment has been minimized.
This comment has been minimized.
fl0w
commented
Feb 10, 2017
|
Am I wrong in thinking this could be a "good first contribution"? Would love to give it a try in that case. |
This comment has been minimized.
This comment has been minimized.
|
I think this could be a good first contribution in general, though some of the errors could be more complicated(the ones that are more frequently getting parsed in userland).
Probably |
This comment has been minimized.
This comment has been minimized.
|
@jasnell I've added links to those files, hope I am doing this right.. |
jasnell
referenced this issue
Feb 10, 2017
Closed
errors, process: port internal/process errors to internal/errors #11294
This comment has been minimized.
This comment has been minimized.
|
@fl0w ... yes, this can be a good first contribution. Please use my PR #11294 as a model. New error codes are added to Also please make sure that descriptions for the error codes are added to Really appreciate your willingness to jump in! Let me know if you have any questions or issues! |
jasnell
referenced this issue
Feb 10, 2017
Closed
errors: assign error code to bootstrap_node created error #11298
jasnell
added
the
good first issue
label
Feb 10, 2017
joyeecheung
referenced this issue
Feb 10, 2017
Closed
New error system in WHATWG URL implementation #11299
This comment has been minimized.
This comment has been minimized.
|
@jasnell: can we modify the error messages of existing errors to more generic and reusable error messages? Or should the error message be completely backwards compatible? |
This comment has been minimized.
This comment has been minimized.
|
Modifying the error message is certainly possible. The biggest thing is to avoid duplicating error codes so make sure you check the other PRs for codes that may be reusable. |
jasnell
referenced this issue
Feb 10, 2017
Closed
errors, child_process: migrate to using internal/errors #11300
This was referenced Feb 10, 2017
slammayjammay
added a commit
to slammayjammay/node
that referenced
this issue
Feb 11, 2017
slammayjammay
referenced this issue
Feb 11, 2017
Closed
errors, console: migrate to use internal/errors.js #11308
This comment has been minimized.
This comment has been minimized.
|
Do we need to launch CITGM for all these semver-major PRs? cc @nodejs/build |
This comment has been minimized.
This comment has been minimized.
|
We should, yes. |
gunar
referenced this issue
Feb 12, 2017
Merged
errors: port internal/fs errors to internal/errors #11317
seppevs
referenced this issue
Feb 12, 2017
Closed
errors, path: migrate to use internal/errors.js #11319
This was referenced Feb 13, 2017
bougarfaoui
referenced this issue
Feb 13, 2017
Closed
errors: port internal/buffer errors to internal/errors #11341
no23reason
referenced this issue
Feb 13, 2017
Closed
errors, repl: migrate to use internal/errors.js #11347
addaleax
added a commit
to addaleax/ayo
that referenced
this issue
Sep 17, 2017
kreig303
referenced this issue
Sep 18, 2017
Closed
errors crypto : migrate errors to internal/errors.js #15452
pmatzavin
added a commit
to pmatzavin/node
that referenced
this issue
Sep 19, 2017
Qard
pushed a commit
to Qard/ayo
that referenced
this issue
Sep 21, 2017
This comment has been minimized.
This comment has been minimized.
|
I just updated the list in the original post to reflect our current state. A couple of entries that were unchecked are now checked and a few that originally had PRs do not have PRs and still have to be ported. |
This comment has been minimized.
This comment has been minimized.
|
I am on "querystring.js" |
ramimoshe
referenced this issue
Sep 23, 2017
Merged
lib/querystring: convert to using internal/errors #15565
This comment has been minimized.
This comment has been minimized.
|
Here's a PR for lib/querystring.js: #15565 |
ramimoshe
referenced this issue
Sep 25, 2017
Closed
lib/https: convert to using internal/errors #15603
jasnell
added a commit
to pmatzavin/node
that referenced
this issue
Sep 25, 2017
joyeecheung
added a commit
that referenced
this issue
Oct 15, 2017
addaleax
added a commit
to ayojs/ayo
that referenced
this issue
Oct 15, 2017
starkwang
added a commit
to starkwang/node
that referenced
this issue
Oct 21, 2017
starkwang
referenced this issue
Oct 21, 2017
Closed
buffer: convert `buffer.transcode` to use internal/errors #16352
starkwang
added a commit
to starkwang/node
that referenced
this issue
Oct 22, 2017
gireeshpunathil
added a commit
that referenced
this issue
Oct 23, 2017
addaleax
added a commit
to ayojs/ayo
that referenced
this issue
Oct 26, 2017
reviewher
referenced this issue
Nov 13, 2017
Closed
node 9 loses error call site information in Buffer.concat #16994
addaleax
added a commit
to ayojs/ayo
that referenced
this issue
Dec 7, 2017
This comment has been minimized.
This comment has been minimized.
|
I am closing this as outdated. All regular JS errors got migrated but might need some more polishing here and there. There are a couple c++ errors that should be migrated but this was never tracked here. |
BridgeAR
closed this
Dec 16, 2017
Error Codes
automation
moved this from Reference
to Done
Dec 16, 2017
This comment has been minimized.
This comment has been minimized.
|
@BridgeAR There seems to be a few new old-style errors added in JS since this PR opened, searching |
joyeecheung
referenced this issue
Dec 16, 2017
Closed
Tracking issue: Migrate errors to internal/errors.js #17709
joyeecheung
referenced this issue
Mar 31, 2019
Open
errors in punycode.js: assign codes or leave them alone? #27023
This comment has been minimized.
This comment has been minimized.
|
I believe this issue is mostly done now except the punycode ones. I opened #27023 for that, so I am going to close this. Feel free to reopen if anyone thinks otherwise. |
joyeecheung
reopened this
Mar 31, 2019
This comment has been minimized.
This comment has been minimized.
|
Oops, did not realize it was closed. Sorry about the noise. |
jasnell commentedFeb 9, 2017
•
edited by joyeecheung
Now that #11220 has landed, we need to begin the process of migrating errors in the
*/lib.jssource over to use it. A basic guide is provided here.Note that moving existing errors over to this mechanism should, in general, be considered
semver-major.Please use the following list to track which files have been migrated over to using the new errors and provide a link back to this issue in the relevant PRs
_debug_agent.js(removed in 549e81b)_debugger.js - #11380(File removed from master)_linklist.jsstreamrelated (blocked)@refack: removed GFC label and commented out sentence in description + split off stream stuff
@BridgeAR: updated the list