Skip to content

Commit 7c0dafd

Browse files
committed
MQE-1712: Get Error HTTP response code: 500 when using magentoCLI with command config:sensitive:set
- command.php no longer overwrites potentially useful output with empty output
1 parent 1416cfb commit 7c0dafd

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)