Skip to content

Commit

Permalink
fixup! switch url and parentURL to props
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobJingleheimer committed Sep 20, 2023
1 parent dd605c3 commit 495cf11
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/internal/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1308,11 +1308,10 @@ E('ERR_INVALID_CURSOR_POS',
E('ERR_INVALID_FD',
'"fd" must be a positive integer: %s', RangeError);
E('ERR_INVALID_FD_TYPE', 'Unsupported fd type: %s', TypeError);
E('ERR_INVALID_FILE_URL_HOST', (url, platform, base) => {
let msg = `File URL host in ${url}`;
if (base) { msg += ` from ${base}`; }
msg += ` must be "localhost" or empty on ${platform}`;
return msg;
E('ERR_INVALID_FILE_URL_HOST', function(url, platform, base) {
this.input = url.href;
this.module = base;
return `File URL host must be "localhost" or empty on ${platform}`;
}, TypeError);
E('ERR_INVALID_FILE_URL_PATH', 'File URL path %s', TypeError);
E('ERR_INVALID_HANDLE_TYPE', 'This handle type cannot be sent', TypeError);
Expand Down

0 comments on commit 495cf11

Please sign in to comment.