Icingacli should return UNKNOWN code, showUsage() also should return non-zero
This commit is contained in:
parent
65591c829f
commit
27d12163c4
|
@ -151,8 +151,8 @@ class Cli extends ApplicationBootstrap
|
|||
if ($this->showBenchmark) {
|
||||
Benchmark::dump();
|
||||
}
|
||||
if (false === $result) {
|
||||
exit(1);
|
||||
if ($result === false) {
|
||||
exit(3);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -197,6 +197,7 @@ abstract class Command
|
|||
$this->commandName,
|
||||
$action
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
public function init()
|
||||
|
|
Loading…
Reference in New Issue