Fix usage on symfony 2.x, fixes #10022
parent
bbe3769bcd
commit
2fb53232d1
|
@ -419,7 +419,7 @@ class Application extends BaseApplication
|
||||||
} catch (\InvalidArgumentException $e) {
|
} catch (\InvalidArgumentException $e) {
|
||||||
if ($required) {
|
if ($required) {
|
||||||
$this->io->writeError($e->getMessage());
|
$this->io->writeError($e->getMessage());
|
||||||
if ($this->areExceptionsCaught()){
|
if ($this->catchExceptions) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
throw $e;
|
throw $e;
|
||||||
|
|
Loading…
Reference in New Issue