Skip to content

Commit b58a2aa

Browse files
tniessenjasnell
authored andcommitted
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 5e4f87a commit b58a2aa

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
@@ -215,7 +215,7 @@ E('ERR_IPC_SYNC_FORK', 'IPC cannot be used with synchronous forks');
215215
E('ERR_MISSING_ARGS', missingArgs);
216216
E('ERR_MISSING_MODULE', 'Cannot find module %s');
217217
E('ERR_MODULE_RESOLUTION_LEGACY', '%s not found by import in %s.' +
218-
'Legacy behavior in require would have found it at %s');
218+
' Legacy behavior in require() would have found it at %s');
219219
E('ERR_NAPI_CONS_FUNCTION', 'Constructor must be a function');
220220
E('ERR_NAPI_CONS_PROTOTYPE_OBJECT', 'Constructor.prototype must be an object');
221221
E('ERR_NO_CRYPTO', 'Node.js is not compiled with OpenSSL crypto support');

0 commit comments

Comments
 (0)