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 #88
| Docs PR or issue | -

There is indeed a missing implode at this place.

Commits
-------

83c3889e add a missing array->string conversion in the exception message
  • Loading branch information
m-vo committed Aug 25, 2020
1 parent 61cd3ba commit f45f623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 f45f623

Please sign in to comment.