inspector: throw ERR_INSPECTOR_NOT_AVAILABLE without an agent · nodejs/node@5f4be17 · GitHub
Skip to content

Commit 5f4be17

Browse files
codebytereaduh95
authored andcommitted
inspector: throw ERR_INSPECTOR_NOT_AVAILABLE without an agent
An Environment created with kNoCreateInspector threw a bare string from inspector.Session#connect(), inspector.open() and the other Agent entry points, so callers could not tell the condition apart by error code. Use the ERR_INSPECTOR_NOT_AVAILABLE code that connectToMainThread() already throws for the same situation. Signed-off-by: Shelley Vohr <shelley.vohr@gmail.com> PR-URL: #66239 Refs: #65977 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent f725b54 commit 5f4be17

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

‎src/inspector_agent.cc‎

Lines changed: 2 additions & 9 deletions

0 commit comments

Comments
 (0)