Skip to content

Commit 495cf11

Browse files
fixup! switch url and parentURL to props
1 parent dd605c3 commit 495cf11

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/internal/errors.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,11 +1308,10 @@ E('ERR_INVALID_CURSOR_POS',
13081308
E('ERR_INVALID_FD',
13091309
'"fd" must be a positive integer: %s', RangeError);
13101310
E('ERR_INVALID_FD_TYPE', 'Unsupported fd type: %s', TypeError);
1311-
E('ERR_INVALID_FILE_URL_HOST', (url, platform, base) => {
1312-
let msg = `File URL host in ${url}`;
1313-
if (base) { msg += ` from ${base}`; }
1314-
msg += ` must be "localhost" or empty on ${platform}`;
1315-
return msg;
1311+
E('ERR_INVALID_FILE_URL_HOST', function(url, platform, base) {
1312+
this.input = url.href;
1313+
this.module = base;
1314+
return `File URL host must be "localhost" or empty on ${platform}`;
13161315
}, TypeError);
13171316
E('ERR_INVALID_FILE_URL_PATH', 'File URL path %s', TypeError);
13181317
E('ERR_INVALID_HANDLE_TYPE', 'This handle type cannot be sent', TypeError);

0 commit comments

Comments
 (0)