Browse Source

Fix exit code to 1 due to php exit code that cannot be greater than 254

1.0
Kuba Turek 10 years ago
parent
commit
0375a80dcf
  1. 2
      Mage/Console.php

2
Mage/Console.php

@ -139,7 +139,7 @@ class Console
if (is_int($exitCode) && $exitCode !== 0) { if (is_int($exitCode) && $exitCode !== 0) {
throw new Exception("Command execution failed with following exit code: $exitCode.", $exitCode); throw new Exception("Command execution failed with following exit code: $exitCode.", $exitCode);
} elseif (is_bool($exitCode) && !$exitCode) { } elseif (is_bool($exitCode) && !$exitCode) {
$exitCode = 1000; $exitCode = 1;
throw new Exception("Command execution failed.", $exitCode); throw new Exception("Command execution failed.", $exitCode);
} }
} catch (Exception $exception) { } catch (Exception $exception) {

Loading…
Cancel
Save