Proper exit code. Issue #52

This commit is contained in:
Andrés Montañez
2014-08-06 21:43:29 -03:00
parent 8df5534470
commit 5d728a9105
14 changed files with 72 additions and 18 deletions
+1 -2
View File
@@ -135,8 +135,7 @@ class Console
throw new Exception('You must specify an environment for this command.');
}
}
$command->run();
$exitCode = 0;
$exitCode = $command->run();
} catch (Exception $exception) {
self::output('<red>' . $exception->getMessage() . '</red>', 1, 2);