Skip to content

Commit 3d46fc7

Browse files
authored
Merge pull request #503 from magento/MQE-1712
MQE-1712: Get Error HTTP response code: 500 when using magentoCLI
2 parents 1416cfb + 7c0dafd commit 3d46fc7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

etc/config/command.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@
3131
$process->run();
3232
$output = $process->getOutput();
3333
if (!$process->isSuccessful()) {
34-
$output = $process->getErrorOutput();
34+
$failureOutput = $process->getErrorOutput();
35+
if (!empty($failureOutput)) {
36+
$output = $failureOutput;
37+
}
3538
}
3639
if (empty($output)) {
3740
$output = "CLI did not return output.";

0 commit comments

Comments
 (0)