Now that #11220 has landed, we need to begin the process of migrating errors in the */lib.js source 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
- Internal
- _debug_agent.js (removed in 549e81bfa1)
- _debugger.js - debugger, errors: migrate to use internal/errors.js #11380 (File removed from master)
- _http_agent.js
- _http_client.js - http_client, errors: migrate to use internal/errors #14423
- _http_common.js
- _http_incoming.js
- _http_outgoing.js _http_outgoing: migrate to use internal/errors #14735
- _http_server.js
- _linklist.js
- _tls_common.js (No changes needed here)
- _tls_legacy.js (No changes needed here)
- _tls_wrap.js - errors,tls_wrap: migrate to use internal/errors.js #13476
- assert.js
- async_hooks.js async_hooks,async_wrap: fixups and fewer aborts #14722
- buffer.js #13976
- child_process.js lib/child_process: convert to using internal/errors #15090
- cluster.js (No changes required here)
- console.js - errors, console: migrate to use internal/errors.js #11308
- constants.js (No changes required here)
- crypto.js
- dgram.js - #12926
- dns.js - dns, errors: Migrate to use internal/errors #14212
- domain.js
- events.js - events: migrate to internal/errors #15623
- fs.js - lib/fs: convert to using internal/errors #15043
- http.js (No changes required here)
- https.js - lib/https: convert to using internal/errors #15603
- inspector.js inspector: migrate to internal/errors #15619
- module.js
- net.js - lib/net: Convert to using internal/errors #14782
- os.js (No changes required here)
- path.js - errors, path: migrate to use internal/errors.js #11319
- process.js (No changes required here)
- punycode.js (may not need to do this one)
- querystring.js - lib/querystring: convert to using internal/errors #15565
- readline.js - errors, readline: migrate to use internal/errors.js #11390
- repl.js - errors, repl: migrate to use internal/errors.js #11347
- timers.js - timers: Migrate to use internal/errors #14659
- tls.js - tls: migrate tls.js to use internal/errors.js #13994
- tty.js
- url.js - errors, url: port url errors to internal/errors #13963
- util.js
- v8.js (no changes required here)
- vm.js
- zlib.js - zlib: migrate to internal/errors #15618
stream related (blocked)
@refack: removed GFC label and commented out sentence in description + split off stream stuff
@BridgeAR: updated the list
Reactions are currently unavailable
Now that #11220 has landed, we need to begin the process of migrating errors in the */lib.js source 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
stream related (blocked)
@refack: removed GFC label and commented out sentence in description + split off stream stuff
@BridgeAR: updated the list