Exit with non-zero if command fails, useful in scripting and CI

This commit is contained in:
Pavel Puchkin 2013-03-29 12:27:09 +11:00
parent 778a97b319
commit bc6b786973
1 changed files with 3 additions and 2 deletions

View File

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