summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/parallel/test-cli-syntax.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/parallel/test-cli-syntax.js b/test/parallel/test-cli-syntax.js
index d80e8c698d..35cc78258d 100644
--- a/test/parallel/test-cli-syntax.js
+++ b/test/parallel/test-cli-syntax.js
@@ -34,6 +34,12 @@ const notFoundRE = /^Error: Cannot find module/m;
const cmd = [node, ..._args].join(' ');
exec(cmd, common.mustCall((err, stdout, stderr) => {
+ if (err) {
+ console.log('-- stdout --');
+ console.log(stdout);
+ console.log('-- stderr --');
+ console.log(stderr);
+ }
assert.ifError(err);
assert.strictEqual(stdout, '');
assert.strictEqual(stderr, '');