Skip to content

Commit 6ccb9fe

Browse files
committed
errors: fix ERR_MODULE_RESOLUTION_LEGACY message
PR-URL: #15290 Refs: #14369 Reviewed-By: Bradley Farias <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 2510500 commit 6ccb9fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ E('ERR_METHOD_NOT_IMPLEMENTED', 'The %s method is not implemented');
241241
E('ERR_MISSING_ARGS', missingArgs);
242242
E('ERR_MISSING_MODULE', 'Cannot find module %s');
243243
E('ERR_MODULE_RESOLUTION_LEGACY', '%s not found by import in %s.' +
244-
'Legacy behavior in require would have found it at %s');
244+
' Legacy behavior in require() would have found it at %s');
245245
E('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times');
246246
E('ERR_NAPI_CONS_FUNCTION', 'Constructor must be a function');
247247
E('ERR_NAPI_CONS_PROTOTYPE_OBJECT', 'Constructor.prototype must be an object');

0 commit comments

Comments
 (0)