Skip to content

Commit 0034820

Browse files
cjihrigaddaleax
authored andcommitted
errors: add ERR_INSPECTOR_COMMAND error
This error is used to propagate errors returned from the inspector module's command system. PR-URL: #26255 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 0017855 commit 0034820

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

doc/api/errors.md

+5
Original file line numberDiff line numberDiff line change
@@ -1159,6 +1159,11 @@ inspector was already connected.
11591159
While using the `inspector` module, an attempt was made to use the inspector
11601160
after the session had already closed.
11611161

1162+
<a id="ERR_INSPECTOR_COMMAND"></a>
1163+
### ERR_INSPECTOR_COMMAND
1164+
1165+
An error occurred while issuing a command via the `inspector` module.
1166+
11621167
<a id="ERR_INSPECTOR_NOT_AVAILABLE"></a>
11631168
### ERR_INSPECTOR_NOT_AVAILABLE
11641169

lib/internal/errors.js

+1
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,7 @@ E('ERR_INCOMPATIBLE_OPTION_PAIR',
706706
'Option "%s" can not be used in combination with option "%s"', TypeError);
707707
E('ERR_INSPECTOR_ALREADY_CONNECTED', '%s is already connected', Error);
708708
E('ERR_INSPECTOR_CLOSED', 'Session was closed', Error);
709+
E('ERR_INSPECTOR_COMMAND', 'Inspector error %d: %s', Error);
709710
E('ERR_INSPECTOR_NOT_AVAILABLE', 'Inspector is not available', Error);
710711
E('ERR_INSPECTOR_NOT_CONNECTED', 'Session is not connected', Error);
711712
E('ERR_INVALID_ADDRESS_FAMILY', 'Invalid address family: %s', RangeError);

0 commit comments

Comments
 (0)