Browse Source

Tweak output of calls to script references, refs #4592

Jordi Boggiano 9 years ago
parent
commit
24ccaa328d
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/Composer/EventDispatcher/EventDispatcher.php

+ 1 - 3
src/Composer/EventDispatcher/EventDispatcher.php

@@ -157,8 +157,6 @@ class EventDispatcher
             } elseif ($this->isComposerScript($callable)) {
                 if ($this->io->isVerbose()) {
                     $this->io->writeError(sprintf('> %s: %s', $event->getName(), $callable));
-                } else {
-                    $this->io->writeError(sprintf('> %s', $callable));
                 }
                 $scriptName = substr($callable, 1);
                 $return = $this->dispatch($scriptName, new Script\Event($scriptName, $event->getComposer(), $event->getIO(), $event->isDevMode()));
@@ -399,7 +397,7 @@ class EventDispatcher
     {
         $eventName = $event->getName();
         if (in_array($eventName, $this->eventStack)) {
-            throw new \RuntimeException(sprintf("Recursive call to '%s' detected", $eventName));
+            throw new \RuntimeException(sprintf("Circular call to script handler '%s' detected", $eventName));
         }
 
         return array_push($this->eventStack, $eventName);