diff options
author | Ali Ijaz Sheikh <ofrobots@google.com> | 2019-02-13 13:21:10 -0800 |
---|---|---|
committer | Ali Ijaz Sheikh <ofrobots@google.com> | 2019-02-15 12:52:05 -0800 |
commit | a02e3e2d5f1f96f3c408270d45935afdd5d1fffc (patch) | |
tree | a279b109ed4c805a03396a1200fa14f62c6f13e0 /test/parallel/test-repl.js | |
parent | 05cd1a0929441943ba2d90c210c2d8bd8560293f (diff) | |
download | android-node-v8-a02e3e2d5f1f96f3c408270d45935afdd5d1fffc.tar.gz android-node-v8-a02e3e2d5f1f96f3c408270d45935afdd5d1fffc.tar.bz2 android-node-v8-a02e3e2d5f1f96f3c408270d45935afdd5d1fffc.zip |
lib: improve error message for MODULE_NOT_FOUND
Include the require stack in the reported error message.
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'test/parallel/test-repl.js')
-rw-r--r-- | test/parallel/test-repl.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js index 14ada1fe60..a53f4a2833 100644 --- a/test/parallel/test-repl.js +++ b/test/parallel/test-repl.js @@ -534,6 +534,8 @@ const errorTests = [ expect: [ 'Thrown:', /^{ Error: Cannot find module 'internal\/repl'/, + /^Require stack:/, + /^- <repl>/, /^ at .*/, /^ at .*/, /^ at .*/, |