Skip to content

Commit

Permalink
ENGCOM-6242: Implement catching for all Errors - ref Magento issue #2…
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirZaets authored Jan 6, 2020
2 parents 5bf78eb + a683fb4 commit 7e4a3c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/internal/Magento/Framework/App/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public function run(AppInterface $application)
throw $e;
}
}
} catch (\Exception $e) {
} catch (\Throwable $e) {
$this->terminate($e);
}
} // phpcs:enable
Expand Down Expand Up @@ -418,12 +418,12 @@ public function isDeveloperMode()
/**
* Display an exception and terminate program execution
*
* @param \Exception $e
* @param \Throwable $e
* @return void
*
* phpcs:disable Magento2.Security.LanguageConstruct, Squiz.Commenting.FunctionCommentThrowTag
*/
protected function terminate(\Exception $e)
protected function terminate(\Throwable $e)
{

if ($this->isDeveloperMode()) {
Expand Down

0 comments on commit 7e4a3c0

Please sign in to comment.