Respect parent setting, handling exceptions (#10017)

main
GeoSot 3 years ago committed by GitHub
parent a5ee2269ef
commit e07d2a7bef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save