diff options
Diffstat (limited to 'test/sequential/test-cli-syntax-bad.js')
-rw-r--r-- | test/sequential/test-cli-syntax-bad.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/sequential/test-cli-syntax-bad.js b/test/sequential/test-cli-syntax-bad.js index e1c7f3bec5..7c4c9c70d9 100644 --- a/test/sequential/test-cli-syntax-bad.js +++ b/test/sequential/test-cli-syntax-bad.js @@ -32,7 +32,8 @@ const syntaxErrorRE = /^SyntaxError: \b/m; const cmd = [node, ..._args].join(' '); exec(cmd, common.mustCall((err, stdout, stderr) => { assert.strictEqual(err instanceof Error, true); - assert.strictEqual(err.code, 1); + assert.strictEqual(err.code, 1, + `code ${err.code} !== 1 for error:\n\n${err}`); // no stdout should be produced assert.strictEqual(stdout, ''); |