Commit bc6b7869 authored by Pavel Puchkin's avatar Pavel Puchkin

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

parent 778a97b3
...@@ -43,7 +43,8 @@ try ...@@ -43,7 +43,8 @@ try
} }
catch (\Exception $e) catch (\Exception $e)
{ {
echo $e->getMessage(); echo $e->getMessage().PHP_EOL;
exit(1);
} }
echo PHP_EOL; echo PHP_EOL;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment