Skip to content

Commit

Permalink
Fix invalid "array to string conversion" in ScriptHandler exception m…
Browse files Browse the repository at this point in the history
…essage (see #2184)

Description
-----------

| Q                | A
| -----------------| ---
| Fixed issues     | Fixes contao/manager-bundle#88
| Docs PR or issue | -

There is indeed a missing implode at this place.

Commits
-------

83c3889 add a missing array->string conversion in the exception message
  • Loading branch information
m-vo committed Aug 25, 2020
1 parent fab8317 commit 5324c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager-bundle/src/Composer/ScriptHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
}

Expand Down

0 comments on commit 5324c34

Please sign in to comment.