errors: fix ERR_MODULE_RESOLUTION_LEGACY message
PR-URL: https://github.com/nodejs/node/pull/15290 Refs: https://github.com/nodejs/node/pull/14369 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
25105008a1
commit
6ccb9fe809
@ -241,7 +241,7 @@ E('ERR_METHOD_NOT_IMPLEMENTED', 'The %s method is not implemented');
|
|||||||
E('ERR_MISSING_ARGS', missingArgs);
|
E('ERR_MISSING_ARGS', missingArgs);
|
||||||
E('ERR_MISSING_MODULE', 'Cannot find module %s');
|
E('ERR_MISSING_MODULE', 'Cannot find module %s');
|
||||||
E('ERR_MODULE_RESOLUTION_LEGACY', '%s not found by import in %s.' +
|
E('ERR_MODULE_RESOLUTION_LEGACY', '%s not found by import in %s.' +
|
||||||
'Legacy behavior in require would have found it at %s');
|
' Legacy behavior in require() would have found it at %s');
|
||||||
E('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times');
|
E('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times');
|
||||||
E('ERR_NAPI_CONS_FUNCTION', 'Constructor must be a function');
|
E('ERR_NAPI_CONS_FUNCTION', 'Constructor must be a function');
|
||||||
E('ERR_NAPI_CONS_PROTOTYPE_OBJECT', 'Constructor.prototype must be an object');
|
E('ERR_NAPI_CONS_PROTOTYPE_OBJECT', 'Constructor.prototype must be an object');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user