Skip to content

Commit e86532e

Browse files
committed
Merge pull request laravel#1829 from neoascetic/return_non_0_on_command_fail
Exit with non-zero if command fails, useful in scripting and CI
2 parents 778a97b + bc6b786 commit e86532e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

laravel/cli/artisan.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
}
4444
catch (\Exception $e)
4545
{
46-
echo $e->getMessage();
46+
echo $e->getMessage().PHP_EOL;
47+
exit(1);
4748
}
4849

49-
echo PHP_EOL;
50+
echo PHP_EOL;

0 commit comments

Comments
 (0)