Skip to content

Commit 9c531fd

Browse files
authored
ENGCOM-3574: 19404 fixed news latter issue #19416
2 parents a7d8b78 + b062c75 commit 9c531fd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/code/Magento/Newsletter/Controller/Subscriber/NewAction.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,7 @@ public function execute()
151151
$status = (int) $this->_subscriberFactory->create()->subscribe($email);
152152
$this->messageManager->addSuccessMessage($this->getSuccessMessage($status));
153153
} catch (LocalizedException $e) {
154-
$this->messageManager->addExceptionMessage(
155-
$e,
156-
__('There was a problem with the subscription: %1', $e->getMessage())
157-
);
154+
$this->messageManager->addErrorMessage($e->getMessage());
158155
} catch (\Exception $e) {
159156
$this->messageManager->addExceptionMessage($e, __('Something went wrong with the subscription.'));
160157
}

0 commit comments

Comments
 (0)