We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79415ed commit 147dd75Copy full SHA for 147dd75
lib/internal/errors.js
@@ -1370,11 +1370,7 @@ E('ERR_INVALID_SYNC_FORK_INPUT',
1370
E('ERR_INVALID_THIS', 'Value of "this" must be of type %s', TypeError);
1371
E('ERR_INVALID_TUPLE', '%s must be an iterable %s tuple', TypeError);
1372
E('ERR_INVALID_URI', 'URI malformed', URIError);
1373
-E('ERR_INVALID_URL', function() {
1374
- // Don't include URL in message.
1375
- // (See https://github.com/nodejs/node/pull/38614)
1376
- return 'Invalid URL';
1377
-}, TypeError);
+E('ERR_INVALID_URL', 'Invalid URL', TypeError);
1378
E('ERR_INVALID_URL_SCHEME',
1379
(expected) => {
1380
if (typeof expected === 'string')
0 commit comments