From 9b993edca8aaaafb9ccb2c16f187f07df36cc9c0 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 13 Jun 2021 05:14:01 -0700 Subject: [PATCH] errors: add ERR_DEBUGGER_STARTUP_ERROR PR-URL: https://github.com/nodejs/node/pull/39024 Backport-PR-URL: https://github.com/nodejs/node/pull/39446 Reviewed-By: Antoine du Hamel Reviewed-By: Luigi Pinca Reviewed-By: Jan Krems --- doc/api/errors.md | 8 ++++++++ lib/internal/errors.js | 1 + 2 files changed, 9 insertions(+) diff --git a/doc/api/errors.md b/doc/api/errors.md index 68c91587ffdebe..7b6b406de0fa54 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -884,6 +884,14 @@ added: REPLACEME An error occurred with the [debugger][]. + +### `ERR_DEBUGGER_STARTUP_ERROR` + + +The [debugger][] timed out waiting for the required host/port to be free. + ### `ERR_DIR_CLOSED` diff --git a/lib/internal/errors.js b/lib/internal/errors.js index 5e6c57efcadb39..441c4f2f317171 100644 --- a/lib/internal/errors.js +++ b/lib/internal/errors.js @@ -832,6 +832,7 @@ E('ERR_CRYPTO_SCRYPT_NOT_SUPPORTED', 'Scrypt algorithm not supported', Error); // Switch to TypeError. The current implementation does not seem right. E('ERR_CRYPTO_SIGN_KEY_REQUIRED', 'No key provided to sign', Error); E('ERR_DEBUGGER_ERROR', '%s', Error); +E('ERR_DEBUGGER_STARTUP_ERROR', '%s', Error); E('ERR_DIR_CLOSED', 'Directory handle was closed', Error); E('ERR_DIR_CONCURRENT_OPERATION', 'Cannot do synchronous work on directory handle with concurrent ' +