Skip to content

Commit

Permalink
Exit with non-zero if command fails, useful in scripting and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
neoascetic committed Mar 29, 2013
1 parent 778a97b commit bc6b786
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions laravel/cli/artisan.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
}
catch (\Exception $e)
{
echo $e->getMessage();
echo $e->getMessage().PHP_EOL;
exit(1);
}

echo PHP_EOL;
echo PHP_EOL;

0 comments on commit bc6b786

Please sign in to comment.