Permalink
Please
sign in to comment.
Browse files
lib: improve error message for MODULE_NOT_FOUND
Include the require stack in the reported error message. PR-URL: #25690 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
- Loading branch information...
Showing
with
28 additions
and 20 deletions.
- +5 −1 lib/internal/modules/cjs/loader.js
- +3 −3 test/fixtures/require-resolve.js
- +1 −1 test/parallel/test-internal-modules.js
- +2 −2 test/parallel/test-loaders-hidden-from-users.js
- +4 −3 test/parallel/test-module-loading-error.js
- +3 −3 test/parallel/test-module-multi-extensions.js
- +2 −0 test/parallel/test-repl.js
- +8 −7 test/sequential/test-module-loading.js
0 comments on commit
a02e3e2