Skip to content

Commit 787cacc

Browse files
committed
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 f4609bd commit 787cacc

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

doc/api/errors.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,14 @@ added: v15.0.0
10071007

10081008
An attempt to invoke an unsupported crypto operation was made.
10091009

1010+
<a id="ERR_DEBUGGER_ERROR"></a>
1011+
### `ERR_DEBUGGER_ERROR`
1012+
<!-- YAML
1013+
added: REPLACEME
1014+
-->
1015+
1016+
An error occurred with the [debugger][].
1017+
10101018
<a id="ERR_DLOPEN_FAILED"></a>
10111019
### `ERR_DLOPEN_FAILED`
10121020
<!-- YAML
@@ -2832,6 +2840,7 @@ The native call from `process.cpuUsage` could not be processed.
28322840
[`util.getSystemErrorName(error.errno)`]: util.md#util_util_getsystemerrorname_err
28332841
[`zlib`]: zlib.md
28342842
[crypto digest algorithm]: crypto.md#crypto_crypto_gethashes
2843+
[debugger]: debugger.md
28352844
[define a custom subpath]: packages.md#packages_subpath_exports
28362845
[domains]: domain.md
28372846
[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
@@ -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)