1
0
mirror of https://github.com/hauke68/Magallanes.git synced 2025-09-13 20:50:18 +02:00

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

This commit is contained in:
Kuba Turek 2014-10-10 21:20:21 +02:00
parent dfbe67622d
commit 0375a80dcf

View File

@ -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) {