From af9e8411f07308f57e3a29f6ec64702f9b0c3248 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 12 Jun 2021 17:13:14 -0700 Subject: [PATCH] errors: add ERR_DEBUGGER_ERROR PR-URL: https://github.com/nodejs/node/pull/39024 Backport-PR-URL: https://github.com/nodejs/node/pull/39446 Reviewed-By: Antoine du Hamel Reviewed-By: Luigi Pinca Reviewed-By: Jan Krems --- doc/api/errors.md | 9 +++++++++ lib/internal/errors.js | 1 + 2 files changed, 10 insertions(+) diff --git a/doc/api/errors.md b/doc/api/errors.md index 7828d5a688e5c1..68c91587ffdebe 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -876,6 +876,14 @@ An unknown cipher was specified. An unknown Diffie-Hellman group name was given. See [`crypto.getDiffieHellman()`][] for a list of valid group names. + +### `ERR_DEBUGGER_ERROR` + + +An error occurred with the [debugger][]. + ### `ERR_DIR_CLOSED` @@ -2599,6 +2607,7 @@ closed. [`util.getSystemErrorName(error.errno)`]: util.md#util_util_getsystemerrorname_err [`zlib`]: zlib.md [crypto digest algorithm]: crypto.md#crypto_crypto_gethashes +[debugger]: debugger.md [define a custom subpath]: packages.md#packages_subpath_exports [domains]: domain.md [event emitter-based]: events.md#events_class_eventemitter diff --git a/lib/internal/errors.js b/lib/internal/errors.js index 31f569f5e57e6a..5e6c57efcadb39 100644 --- a/lib/internal/errors.js +++ b/lib/internal/errors.js @@ -831,6 +831,7 @@ E('ERR_CRYPTO_SCRYPT_INVALID_PARAMETER', 'Invalid scrypt parameter', Error); E('ERR_CRYPTO_SCRYPT_NOT_SUPPORTED', 'Scrypt algorithm not supported', Error); // Switch to TypeError. The current implementation does not seem right. E('ERR_CRYPTO_SIGN_KEY_REQUIRED', 'No key provided to sign', Error); +E('ERR_DEBUGGER_ERROR', '%s', Error); E('ERR_DIR_CLOSED', 'Directory handle was closed', Error); E('ERR_DIR_CONCURRENT_OPERATION', 'Cannot do synchronous work on directory handle with concurrent ' +