File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1308,11 +1308,10 @@ E('ERR_INVALID_CURSOR_POS',
1308
1308
E ( 'ERR_INVALID_FD' ,
1309
1309
'"fd" must be a positive integer: %s' , RangeError ) ;
1310
1310
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 } ` ;
1316
1315
} , TypeError ) ;
1317
1316
E ( 'ERR_INVALID_FILE_URL_PATH' , 'File URL path %s' , TypeError ) ;
1318
1317
E ( 'ERR_INVALID_HANDLE_TYPE' , 'This handle type cannot be sent' , TypeError ) ;
You can’t perform that action at this time.
0 commit comments