Skip to content

Commit 08f0b15

Browse files
committed
errors: add ERR_DEBUGGER_ERROR
1 parent 5b3587d commit 08f0b15

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
@@ -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
@@ -2828,6 +2836,7 @@ The native call from `process.cpuUsage` could not be processed.
28282836
[`util.getSystemErrorName(error.errno)`]: util.md#util_util_getsystemerrorname_err
28292837
[`zlib`]: zlib.md
28302838
[crypto digest algorithm]: crypto.md#crypto_crypto_gethashes
2839+
[debugger]: debugger.md
28312840
[define a custom subpath]: packages.md#packages_subpath_exports
28322841
[domains]: domain.md
28332842
[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)