Skip to content

Commit a683fb4

Browse files
ENGCOM-6242: Implement catching for all Errors - ref Magento issue #23350 #25250
- Merge Pull Request #25250 from miszyman/magento2:2.3-develop - Merged commits: 1. ee8373f 2. 5c054e1 3. 627ac5a
2 parents 902d74d + 627ac5a commit a683fb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public function run(AppInterface $application)
267267
throw $e;
268268
}
269269
}
270-
} catch (\Exception $e) {
270+
} catch (\Throwable $e) {
271271
$this->terminate($e);
272272
}
273273
} // phpcs:enable
@@ -418,12 +418,12 @@ public function isDeveloperMode()
418418
/**
419419
* Display an exception and terminate program execution
420420
*
421-
* @param \Exception $e
421+
* @param \Throwable $e
422422
* @return void
423423
*
424424
* phpcs:disable Magento2.Security.LanguageConstruct, Squiz.Commenting.FunctionCommentThrowTag
425425
*/
426-
protected function terminate(\Exception $e)
426+
protected function terminate(\Throwable $e)
427427
{
428428

429429
if ($this->isDeveloperMode()) {

0 commit comments

Comments
 (0)