Skip to content

Commit baa693b

Browse files
committed
fix: fallback to getOutput if getErrorOutput returns nothing
1 parent 0293241 commit baa693b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Process/Process.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function runShellCommandline(string $command, string $cwd = null,
2727
$process->run();
2828

2929
if (!$process->isSuccessful()) {
30-
throw new RuntimeException($process->getErrorOutput());
30+
throw new RuntimeException($process->getErrorOutput() ?: $process->getOutput());
3131
}
3232

3333
return $process;

0 commit comments

Comments
 (0)