Skip to content

Commit 7e4a3c0

Browse files
ENGCOM-6242: Implement catching for all Errors - ref Magento issue #23350 #25250
2 parents 5bf78eb + a683fb4 commit 7e4a3c0

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)