Commit ae9c773e authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Lancement de commande shell : Affichage de la commande en erreur

parent ad832656
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -21,9 +21,10 @@ trait ShellCommandRunnerTrait
            }

            if (!$result->isSuccessfull()) {
                $message = sprintf("La commande '%s' a échoué (code retour = %s). ",
                $message = sprintf("La commande '%s' a échoué (code retour = %s) : %s",
                    $command->getName(),
                    $result->getReturnCode()
                    $result->getReturnCode(),
                    $command->getCommandLine()
                );
                if ($output = $result->getOutput()) {
                    $message .= "Voici le log d'exécution : " . implode(PHP_EOL, $output);