diff --git a/manager-bundle/src/Composer/ScriptHandler.php b/manager-bundle/src/Composer/ScriptHandler.php index f1a87b51450..6a998e9f02a 100644 --- a/manager-bundle/src/Composer/ScriptHandler.php +++ b/manager-bundle/src/Composer/ScriptHandler.php @@ -92,7 +92,7 @@ static function (string $type, string $buffer) use ($event): void { ); if (!$process->isSuccessful()) { - throw new \RuntimeException(sprintf('An error occurred while executing the "%s" command: %s', $cmd, $process->getErrorOutput())); + throw new \RuntimeException(sprintf('An error occurred while executing the "%s" command: %s', implode(' ', $cmd), $process->getErrorOutput())); } }