From bc6b786973326606ada43d87aaff81624ac4f80d Mon Sep 17 00:00:00 2001 From: Pavel Puchkin Date: Fri, 29 Mar 2013 12:27:09 +1100 Subject: [PATCH] Exit with non-zero if command fails, useful in scripting and CI --- laravel/cli/artisan.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/laravel/cli/artisan.php b/laravel/cli/artisan.php index e7bd130e..90f29801 100644 --- a/laravel/cli/artisan.php +++ b/laravel/cli/artisan.php @@ -43,7 +43,8 @@ } catch (\Exception $e) { - echo $e->getMessage(); + echo $e->getMessage().PHP_EOL; + exit(1); } -echo PHP_EOL; \ No newline at end of file +echo PHP_EOL;