소스 검색

Don't throw an exception if the called script is not one of the
event-scripts. This makes it possible for one to define their own
scripts like "make-release" etc.

Max Gfeller 11 년 전
부모
커밋
040bbaca51
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      src/Composer/Command/RunScriptCommand.php

+ 0 - 2
src/Composer/Command/RunScriptCommand.php

@@ -56,8 +56,6 @@ EOT
             if (defined('Composer\Script\ScriptEvents::'.str_replace('-', '_', strtoupper($script)))) {
                 throw new \InvalidArgumentException(sprintf('Script "%s" cannot be run with this command', $script));
             }
-
-            throw new \InvalidArgumentException(sprintf('Script "%s" does not exist', $script));
         }
 
         $this->getComposer()->getEventDispatcher()->dispatchCommandEvent($script, $input->getOption('dev') || !$input->getOption('no-dev'));