diff options
Diffstat (limited to 'test/sequential/test-cli-syntax-file-not-found.js')
-rw-r--r-- | test/sequential/test-cli-syntax-file-not-found.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/sequential/test-cli-syntax-file-not-found.js b/test/sequential/test-cli-syntax-file-not-found.js index 848e2fe231..b90033a396 100644 --- a/test/sequential/test-cli-syntax-file-not-found.js +++ b/test/sequential/test-cli-syntax-file-not-found.js @@ -33,7 +33,8 @@ const notFoundRE = /^Error: Cannot find module/m; // stderr should have a module not found error message assert(notFoundRE.test(stderr), `${notFoundRE} === ${stderr}`); - assert.strictEqual(err.code, 1); + assert.strictEqual(err.code, 1, + `code ${err.code} !== 1 for error:\n\n${err}`); })); }); }); |