We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a7d8b78 + b062c75 commit 9c531fdCopy full SHA for 9c531fd
app/code/Magento/Newsletter/Controller/Subscriber/NewAction.php
@@ -151,10 +151,7 @@ public function execute()
151
$status = (int) $this->_subscriberFactory->create()->subscribe($email);
152
$this->messageManager->addSuccessMessage($this->getSuccessMessage($status));
153
} catch (LocalizedException $e) {
154
- $this->messageManager->addExceptionMessage(
155
- $e,
156
- __('There was a problem with the subscription: %1', $e->getMessage())
157
- );
+ $this->messageManager->addErrorMessage($e->getMessage());
158
} catch (\Exception $e) {
159
$this->messageManager->addExceptionMessage($e, __('Something went wrong with the subscription.'));
160
}
0 commit comments