Browse Source

Merge pull request #1829 from neoascetic/return_non_0_on_command_fail

Exit with non-zero if command fails, useful in scripting and CI
Taylor Otwell 11 years ago
parent
commit
e86532e095
1 changed files with 3 additions and 2 deletions
  1. 3 2
      laravel/cli/artisan.php

+ 3 - 2
laravel/cli/artisan.php

@@ -43,7 +43,8 @@ try
 }
 catch (\Exception $e)
 {
-	echo $e->getMessage();
+	echo $e->getMessage().PHP_EOL;
+	exit(1);
 }
 
-echo PHP_EOL;
+echo PHP_EOL;