From 7c0dafd9cffef9f50b8b662c0b7dafb04d8cd6db Mon Sep 17 00:00:00 2001 From: Kevin Kozan Date: Mon, 11 Nov 2019 08:58:26 -0600 Subject: [PATCH] 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 --- etc/config/command.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/config/command.php b/etc/config/command.php index 7b45a2595..adc372e43 100644 --- a/etc/config/command.php +++ b/etc/config/command.php @@ -31,7 +31,10 @@ $process->run(); $output = $process->getOutput(); if (!$process->isSuccessful()) { - $output = $process->getErrorOutput(); + $failureOutput = $process->getErrorOutput(); + if (!empty($failureOutput)) { + $output = $failureOutput; + } } if (empty($output)) { $output = "CLI did not return output.";