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
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
codeproperty as changing those could result in bigger breakages.On how to migrate those errors, see the guide: Using the internal/errors.js Module
new Error('write after end'): can be migrated toERR_STREAM_WRITE_AFTER_ENDnew Error('Cannot pipe, not readable')): can be migrated toERR_STREAM_CANNOT_PIPEshould 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_ATTACKnew Error('TLS session renegotiation disabled for this socket'): needs a new error, maybeERR_TLS_RENEGOTIATION_DISABLEDnew Error('Invalid data')): can be migrated toERR_INVALID_ARG_TYPEnew Error('This socket is closed'), cb): can be migrated toERR_SOCKET_CLOSEDnew Error('Not running')): needs a new error, maybeERR_SERVER_NOT_RUNNINGnew Error('Script execution interrupted.')): needs a new error, maybeERR_SCRIPT_EXECUTION_INTERRUPTED