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