Exit with non-zero if command fails, useful in scripting and CI
This commit is contained in:
@@ -43,7 +43,8 @@ try
|
||||
}
|
||||
catch (\Exception $e)
|
||||
{
|
||||
echo $e->getMessage();
|
||||
echo $e->getMessage().PHP_EOL;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
echo PHP_EOL;
|
||||
echo PHP_EOL;
|
||||
|
||||
Reference in New Issue
Block a user