diff --git a/lib/internal/errors.js b/lib/internal/errors.js index fd63334d802dba..beac5baf8cda6f 100644 --- a/lib/internal/errors.js +++ b/lib/internal/errors.js @@ -1370,11 +1370,7 @@ E('ERR_INVALID_SYNC_FORK_INPUT', E('ERR_INVALID_THIS', 'Value of "this" must be of type %s', TypeError); E('ERR_INVALID_TUPLE', '%s must be an iterable %s tuple', TypeError); E('ERR_INVALID_URI', 'URI malformed', URIError); -E('ERR_INVALID_URL', function() { - // Don't include URL in message. - // (See https://github.com/nodejs/node/pull/38614) - return 'Invalid URL'; -}, TypeError); +E('ERR_INVALID_URL', 'Invalid URL', TypeError); E('ERR_INVALID_URL_SCHEME', (expected) => { if (typeof expected === 'string')