Skip to content

Commit 0775715

Browse files
authored
Better error handling for issues during bulk attribute update (#1434)
1 parent 54c4fc7 commit 0775715

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/core/Mage/Adminhtml/controllers/Catalog/Product/Action/AttributeController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,9 @@ public function saveAction()
190190
catch (Mage_Core_Exception $e) {
191191
$this->_getSession()->addError($e->getMessage());
192192
}
193-
catch (Exception $e) {
194-
$this->_getSession()->addException($e, $this->__('An error occurred while updating the product(s) attributes.'));
193+
catch (Throwable $e) {
194+
Mage::logException($e);
195+
$this->_getSession()->addError($this->__('An error occurred while updating the product(s) attributes.'));
195196
}
196197

197198
$this->_redirect('*/catalog_product/', array('store'=>$this->_getHelper()->getSelectedStoreId()));

0 commit comments

Comments
 (0)