Commit eccc581a authored by rjsmelo's avatar rjsmelo

[bp/66015][FIX] Fix 500 when exception is throw, for instance, when proc_open is not available

parent a8bc4197
......@@ -247,7 +247,7 @@ class ComposerCli
$args = [$args];
}
$output = $errors = '';
$command = $output = $errors = '';
try {
$builder = new ProcessBuilder();
......@@ -268,6 +268,8 @@ class ComposerCli
$process = $builder->getProcess();
$command = $process->getCommandLine();
$process->setTimeout($this->timeout);
$process->run();
......@@ -282,7 +284,7 @@ class ComposerCli
}
$this->lastResult = [
'command' => $process->getCommandLine(),
'command' => $command,
'output' => $output,
'errors' => $errors,
'code' => $code
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment