Skip to content

Commit c743624

Browse files
committed
magento/magento2#: Replace deprecated addError, addSuccess, addException methods in Magento_Customer
1 parent 444fb5c commit c743624

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Customer/Controller/Address/Delete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function execute()
3232
$this->messageManager->addComplexErrorMessage('unableDeleteAddressMessage');
3333
}
3434
} catch (\Exception $other) {
35-
$this->messageManager->addExceptionMessage($other, __('We can\'t delete the address right now.'));
35+
$this->messageManager->addException($other, __('We can\'t delete the address right now.'));
3636
}
3737
}
3838
return $this->resultRedirectFactory->create()->setPath('*/*/index');

app/code/Magento/Customer/Controller/Adminhtml/Group/Save.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function execute()
9696
$this->messageManager->addSuccessMessage(__('You saved the customer group.'));
9797
$resultRedirect->setPath('customer/group');
9898
} catch (\Exception $e) {
99-
$this->messageManager->addErrorMessage($e->getMessage());
99+
$this->messageManager->addError($e->getMessage());
100100
if ($customerGroup != null) {
101101
$this->storeCustomerGroupDataToSession(
102102
$this->dataObjectProcessor->buildOutputDataArray(

0 commit comments

Comments
 (0)