From 150271d364ae86e27a65b2e885fa8448a9b917e5 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 30 Mar 2022 10:36:28 +0200 Subject: [PATCH] Render all throwables the same, including \Error subclasses --- src/Symfony/Component/Console/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index 1021a900f0972..bb2fdcebd60ac 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -147,7 +147,7 @@ public function run(InputInterface $input = null, OutputInterface $output = null try { $exitCode = $this->doRun($input, $output); - } catch (\Exception $e) { + } catch (\Throwable $e) { if (!$this->catchExceptions) { throw $e; }