fixes a bug when output/error output contains a % character

This commit is contained in:
Johannes M. Schmitt 2013-01-12 11:09:29 +01:00
parent 92f951fd7a
commit 785d3655dd

View File

@ -30,8 +30,10 @@ class ProcessFailedException extends RuntimeException
parent::__construct(
sprintf(
'The command "%s" failed.'."\n\nOutput:\n================\n".$process->getOutput()."\n\nError Output:\n================\n".$process->getErrorOutput(),
$process->getCommandLine()
'The command "%s" failed.'."\n\nOutput:\n================\n%s\n\nError Output:\n================\n%s",
$process->getCommandLine(),
$process->getOutput(),
$process->getErrorOutput()
)
);