Skip to content

Commit 31d91fb

Browse files
committed
chore(utils/spawn): print stdout if stderr is empty
1 parent 38cdbc1 commit 31d91fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/spawn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default (
2323

2424
if (result.status !== 0) {
2525
throw new Error(
26-
`The command '${command}' returned non-zero exit status ${result.status}: ${result.stderr}`,
26+
`The command '${command}' returned non-zero exit status ${result.status}: ${result.stderr || result.stdout}`,
2727
);
2828
}
2929

0 commit comments

Comments
 (0)