1
0
Fork 0

Fix use of non existing ->getIO() function

pull/3389/head
André R 2014-11-02 20:44:04 +01:00
parent a309e1d89d
commit 9e0a85fb64
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ class EventDispatcher
} else {
$args = implode(' ', array_map(array('Composer\Util\ProcessExecutor','escape'), $event->getArguments()));
if (0 !== ($exitCode = $this->process->execute($callable . ($args === '' ? '' : ' '.$args)))) {
$event->getIO()->write(sprintf('<error>Script %s handling the %s event returned with an error</error>', $callable, $event->getName()));
$this->io->write(sprintf('<error>Script %s handling the %s event returned with an error</error>', $callable, $event->getName()));
throw new \RuntimeException('Error Output: '.$this->process->getErrorOutput(), $exitCode);
}