Преглед изворни кода

use different exit codes for different errors

Grégoire Paris пре 12 година
родитељ
комит
9e30c9b403
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Composer/Command/StatusCommand.php

+ 1 - 1
src/Composer/Command/StatusCommand.php

@@ -129,6 +129,6 @@ EOT
         // Dispatch post-status-command
         $composer->getEventDispatcher()->dispatchScript(ScriptEvents::POST_STATUS_CMD, true);
 
-        return ($errors || $unpushedChanges) ? 1 : 0;
+        return ($errors ? 1 : 0) + ($unpushedChanges ? 2 : 0);
     }
 }