fixes a bug when output/error output contains a % character
This commit is contained in:
parent
92f951fd7a
commit
785d3655dd
@ -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()
|
||||
)
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user