Skip to content

Commit cfccf13

Browse files
Trottrichardlau
authored andcommitted
errors: add ERR_DEBUGGER_ERROR
PR-URL: #39024 Backport-PR-URL: #39446 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Jan Krems <[email protected]>
1 parent 052e1c5 commit cfccf13

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

doc/api/errors.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,14 @@ An unknown cipher was specified.
876876
An unknown Diffie-Hellman group name was given. See
877877
[`crypto.getDiffieHellman()`][] for a list of valid group names.
878878

879+
<a id="ERR_DEBUGGER_ERROR"></a>
880+
### `ERR_DEBUGGER_ERROR`
881+
<!-- YAML
882+
added: REPLACEME
883+
-->
884+
885+
An error occurred with the [debugger][].
886+
879887
<a id="ERR_DIR_CLOSED"></a>
880888
### `ERR_DIR_CLOSED`
881889

@@ -2599,6 +2607,7 @@ closed.
25992607
[`util.getSystemErrorName(error.errno)`]: util.md#util_util_getsystemerrorname_err
26002608
[`zlib`]: zlib.md
26012609
[crypto digest algorithm]: crypto.md#crypto_crypto_gethashes
2610+
[debugger]: debugger.md
26022611
[define a custom subpath]: packages.md#packages_subpath_exports
26032612
[domains]: domain.md
26042613
[event emitter-based]: events.md#events_class_eventemitter

lib/internal/errors.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,7 @@ E('ERR_CRYPTO_SCRYPT_INVALID_PARAMETER', 'Invalid scrypt parameter', Error);
831831
E('ERR_CRYPTO_SCRYPT_NOT_SUPPORTED', 'Scrypt algorithm not supported', Error);
832832
// Switch to TypeError. The current implementation does not seem right.
833833
E('ERR_CRYPTO_SIGN_KEY_REQUIRED', 'No key provided to sign', Error);
834+
E('ERR_DEBUGGER_ERROR', '%s', Error);
834835
E('ERR_DIR_CLOSED', 'Directory handle was closed', Error);
835836
E('ERR_DIR_CONCURRENT_OPERATION',
836837
'Cannot do synchronous work on directory handle with concurrent ' +

0 commit comments

Comments
 (0)