Skip to content

Commit 631856e

Browse files
Trottdanielleadams
authored andcommitted
errors: add ERR_DEBUGGER_ERROR
PR-URL: #39024 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jan Krems <jan.krems@gmail.com>
1 parent 7f225a0 commit 631856e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

doc/api/errors.md

+9
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,14 @@ added: v15.0.0
10031003

10041004
An attempt to invoke an unsupported crypto operation was made.
10051005

1006+
<a id="ERR_DEBUGGER_ERROR"></a>
1007+
### `ERR_DEBUGGER_ERROR`
1008+
<!-- YAML
1009+
added: REPLACEME
1010+
-->
1011+
1012+
An error occurred with the [debugger][].
1013+
10061014
<a id="ERR_DLOPEN_FAILED"></a>
10071015
### `ERR_DLOPEN_FAILED`
10081016
<!-- YAML
@@ -2827,6 +2835,7 @@ The native call from `process.cpuUsage` could not be processed.
28272835
[`util.getSystemErrorName(error.errno)`]: util.md#util_util_getsystemerrorname_err
28282836
[`zlib`]: zlib.md
28292837
[crypto digest algorithm]: crypto.md#crypto_crypto_gethashes
2838+
[debugger]: debugger.md
28302839
[define a custom subpath]: packages.md#packages_subpath_exports
28312840
[domains]: domain.md
28322841
[event emitter-based]: events.md#events_class_eventemitter

lib/internal/errors.js

+1
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,7 @@ E('ERR_CRYPTO_SCRYPT_INVALID_PARAMETER', 'Invalid scrypt parameter', Error);
890890
E('ERR_CRYPTO_SCRYPT_NOT_SUPPORTED', 'Scrypt algorithm not supported', Error);
891891
// Switch to TypeError. The current implementation does not seem right.
892892
E('ERR_CRYPTO_SIGN_KEY_REQUIRED', 'No key provided to sign', Error);
893+
E('ERR_DEBUGGER_ERROR', '%s', Error);
893894
E('ERR_DIR_CLOSED', 'Directory handle was closed', Error);
894895
E('ERR_DIR_CONCURRENT_OPERATION',
895896
'Cannot do synchronous work on directory handle with concurrent ' +

0 commit comments

Comments
 (0)