From 0375a80dcf4759a8bcbbe8751056482fa8fb6870 Mon Sep 17 00:00:00 2001 From: Kuba Turek Date: Fri, 10 Oct 2014 21:20:21 +0200 Subject: [PATCH] Fix exit code to 1 due to php exit code that cannot be greater than 254 --- Mage/Console.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage/Console.php b/Mage/Console.php index 4ba4b3a..83ce6cb 100644 --- a/Mage/Console.php +++ b/Mage/Console.php @@ -139,7 +139,7 @@ class Console if (is_int($exitCode) && $exitCode !== 0) { throw new Exception("Command execution failed with following exit code: $exitCode.", $exitCode); } elseif (is_bool($exitCode) && !$exitCode) { - $exitCode = 1000; + $exitCode = 1; throw new Exception("Command execution failed.", $exitCode); } } catch (Exception $exception) {