We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
runSequence
1 parent 62a1b35 commit 3a75838Copy full SHA for 3a75838
1 file changed
scripts/run-sequence.js
@@ -10,7 +10,7 @@ function runSequence(tasks, opts = { timeout: 100000, shell: true }) {
10
for (const task of tasks) {
11
console.log(`${task[0]} ${task[1].join(" ")}`);
12
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()}`);
+ 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()}`);
14
console.log(result.stdout && result.stdout.toString());
15
lastResult = result;
16
}
0 commit comments