Skip to content

Commit 4807590

Browse files
authored
Spark exit for error codes
1 parent fb07307 commit 4807590

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

spark

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,9 @@ ini_set('display_errors', 1);
5353
// Show basic information before we do anything else.
5454
$console->showHeader();
5555

56-
// fire off the command the main framework.
57-
$console->run();
56+
// fire off the command in the main framework.
57+
$response = $console->run();
58+
if ($response->getStatusCode() >= 300)
59+
{
60+
exit($response->getStatusCode());
61+
}

0 commit comments

Comments
 (0)