File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/code/Magento/Customer/Controller Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function execute()
32
32
$ this ->messageManager ->addComplexErrorMessage ('unableDeleteAddressMessage ' );
33
33
}
34
34
} 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. ' ));
36
36
}
37
37
}
38
38
return $ this ->resultRedirectFactory ->create ()->setPath ('*/*/index ' );
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ public function execute()
96
96
$ this ->messageManager ->addSuccessMessage (__ ('You saved the customer group. ' ));
97
97
$ resultRedirect ->setPath ('customer/group ' );
98
98
} catch (\Exception $ e ) {
99
- $ this ->messageManager ->addErrorMessage ($ e ->getMessage ());
99
+ $ this ->messageManager ->addError ($ e ->getMessage ());
100
100
if ($ customerGroup != null ) {
101
101
$ this ->storeCustomerGroupDataToSession (
102
102
$ this ->dataObjectProcessor ->buildOutputDataArray (
You can’t perform that action at this time.
0 commit comments