Skip to content

Commit c5c34fc

Browse files
authored
Converted Exception to Throwable in Mage_Core_Block_Template. (#2623)
1 parent 2946fcb commit c5c34fc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/code/core/Mage/Core/Block/Template.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,12 @@ public function fetchView($fileName)
259259
$thisClass = get_class($this);
260260
Mage::log('Not valid template file:' . $fileName . ' class: ' . $thisClass, Zend_Log::CRIT, null, true);
261261
}
262-
} catch (Exception $e) {
262+
} catch (Throwable $e) {
263263
ob_get_clean();
264-
throw $e;
264+
if (Mage::getIsDeveloperMode()) {
265+
throw $e;
266+
}
267+
Mage::logException($e);
265268
}
266269

267270
if ($hints) {

0 commit comments

Comments
 (0)