-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Closed
Labels
errorsIssues and PRs related to JavaScript errors originated in Node.js core.Issues and PRs related to JavaScript errors originated in Node.js core.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.lib / srcIssues and PRs related to general changes in the lib or src directory.Issues and PRs related to general changes in the lib or src directory.
Description
There are a few old-style errors added since #11273 opened. Opening a new issue to track the migration. I have excluded errors that have existing code
property as changing those could result in bigger breakages.
On how to migrate those errors, see the guide: Using the internal/errors.js Module
- lib/_http_outgoing.js - lib, test: migrate _http_outgoing.js's remaining errors to internal/errors.js #17837
new Error('write after end')
: can be migrated toERR_STREAM_WRITE_AFTER_END
new Error('Cannot pipe, not readable'))
: can be migrated toERR_STREAM_CANNOT_PIPE
- lib/_tls_legacy.js - tls: comment about old-style errors #17759
should not be migrated because it's being deprecated. Add a comment there instead.new Error('TLS session renegotiation attack detected')
: can be migrated toERR_TLS_SESSION_ATTACK
- lib/_tls_wrap.js - _tls_wrap: Migrate the errors to internal/errors #17709 #17792
new Error('TLS session renegotiation disabled for this socket')
: needs a new error, maybeERR_TLS_RENEGOTIATION_DISABLED
- lib/fs.js - lib: migrate errors to internal/errors #17719
new Error('Invalid data'))
: can be migrated toERR_INVALID_ARG_TYPE
- lib/net.js - net: migrate errors to internal/errors #17766
new Error('This socket is closed'), cb)
: can be migrated toERR_SOCKET_CLOSED
new Error('Not running'))
: needs a new error, maybeERR_SERVER_NOT_RUNNING
- lib/repl.js - repl: migrate errors to internal/errors #17716
new Error('Script execution interrupted.'))
: needs a new error, maybeERR_SCRIPT_EXECUTION_INTERRUPTED
Metadata
Metadata
Assignees
Labels
errorsIssues and PRs related to JavaScript errors originated in Node.js core.Issues and PRs related to JavaScript errors originated in Node.js core.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.lib / srcIssues and PRs related to general changes in the lib or src directory.Issues and PRs related to general changes in the lib or src directory.