Skip to content

Commit 5c054e1

Browse files
committed
Unifying the catch statement - ref Magento issue #23350
1 parent ee8373f commit 5c054e1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/internal/Magento/Framework/App/Bootstrap.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,10 @@ public function run(AppInterface $application)
267267
throw $e;
268268
}
269269
}
270-
} catch (\Exception $e) {
271-
$this->terminate($e);
272-
} catch (\Error $e) {
270+
} catch (\Throwable $e) {
273271
$this->terminate($e);
274272
}
273+
275274
} // phpcs:enable
276275

277276
/**

0 commit comments

Comments
 (0)