Skip to content

Commit

Permalink
Converted Exception to Throwable in Mage_Core_Block_Template. (#2623)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiatng authored Sep 28, 2022
1 parent 2946fcb commit c5c34fc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/code/core/Mage/Core/Block/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,12 @@ public function fetchView($fileName)
$thisClass = get_class($this);
Mage::log('Not valid template file:' . $fileName . ' class: ' . $thisClass, Zend_Log::CRIT, null, true);
}
} catch (Exception $e) {
} catch (Throwable $e) {
ob_get_clean();
throw $e;
if (Mage::getIsDeveloperMode()) {
throw $e;
}
Mage::logException($e);
}

if ($hints) {
Expand Down

0 comments on commit c5c34fc

Please sign in to comment.