diff --git a/vendor/magento/module-customer/Controller/Account/LoginPost.php b/vendor/magento/module-customer/Controller/Account/LoginPost.php
index 36d04e9..f3de0f1 100644
--- a/vendor/magento/module-customer/Controller/Account/LoginPost.php
+++ b/vendor/magento/module-customer/Controller/Account/LoginPost.php
@@ -211,21 +211,21 @@ class LoginPost extends AbstractAccount implements CsrfAwareActionInterface, Htt
                     );
                 } catch (LocalizedException $e) {
                     $message = $e->getMessage();
                 } catch (\Exception $e) {
                     // PA DSS violation: throwing or logging an exception here can disclose customer password
                     $this->messageManager->addErrorMessage(
                         __('An unspecified error occurred. Please contact us for assistance.')
                     );
                 } finally {
                     if (isset($message)) {
-                        $this->messageManager->addErrorMessage($message);
+                        $this->messageManager->addError($message);
                         $this->session->setUsername($login['username']);
                     }
                 }
             } else {
                 $this->messageManager->addErrorMessage(__('A login and a password are required.'));
             }
         }

         return $this->accountRedirect->getRedirect();
     }
