Skip to content

Commit 99c286e

Browse files
authored
MAGETWO-66756: Refactor repeating logic #4674
2 parents ca3ae23 + e31dbce commit 99c286e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Message/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public function addException(\Exception $exception, $alternativeText, $group = n
242242
);
243243

244244
$this->logger->critical($message);
245-
$this->addMessage($this->messageFactory->create(MessageInterface::TYPE_ERROR, $alternativeText), $group);
245+
$this->addError($alternativeText, $group);
246246
return $this;
247247
}
248248

0 commit comments

Comments
 (0)