Skip to content

Commit aeabaf3

Browse files
kyrenafballiano
andauthored
Exception is now printed on Mage_Catalog_ProductController::viewAction() in developer mode (#3578)
* Show product error on dev mode * phpcs --------- Co-authored-by: Fabrizio Balliano <[email protected]>
1 parent abdef59 commit aeabaf3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/core/Mage/Catalog/controllers/ProductController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ public function viewAction()
126126
} elseif (!$this->getResponse()->isRedirect()) {
127127
$this->_forward('noRoute');
128128
}
129+
} elseif (Mage::getIsDeveloperMode()) {
130+
Mage::printException($e);
129131
} else {
130132
Mage::logException($e);
131133
$this->_forward('noRoute');

0 commit comments

Comments
 (0)