1
0
Fork 0

Respect parent setting, handling exceptions (#10017)

pull/10018/head
GeoSot 2021-07-22 16:14:15 +03:00 committed by GitHub
parent a5ee2269ef
commit e07d2a7bef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -419,7 +419,10 @@ class Application extends BaseApplication
} catch (\InvalidArgumentException $e) {
if ($required) {
$this->io->writeError($e->getMessage());
exit(1);
if ($this->areExceptionsCaught()){
exit(1);
}
throw $e;
}
} catch (JsonValidationException $e) {
if ($required) {