Skip to content

Commit 3a75838

Browse files
committed
include stdout in runSequence thrown error
1 parent 62a1b35 commit 3a75838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/run-sequence.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function runSequence(tasks, opts = { timeout: 100000, shell: true }) {
1010
for (const task of tasks) {
1111
console.log(`${task[0]} ${task[1].join(" ")}`);
1212
const result = cp.spawnSync(task[0], task[1], opts);
13-
if (result.status !== 0) throw new Error(`${task[0]} ${task[1].join(" ")} failed: ${result.stderr && result.stderr.toString()}`);
13+
if (result.status !== 0) throw new Error(`${task[0]} ${task[1].join(" ")} failed: ${result.stderr && "stderr: " + result.stderr.toString()}${result.stdout && "\nstdout: " + result.stdout.toString()}`);
1414
console.log(result.stdout && result.stdout.toString());
1515
lastResult = result;
1616
}

0 commit comments

Comments
 (0)