Skip to content

Commit 0fdef68

Browse files
author
Yurii Torbyk
committed
MAGETWO-33060: Refactor __() to return Phrase object
1 parent f7ff60f commit 0fdef68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Model/Resource/GroupRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function save(\Magento\Customer\Api\Data\GroupInterface $group)
124124
* Would like a better way to determine this error condition but
125125
* difficult to do without imposing more database calls
126126
*/
127-
if ($e->getMessage() === __('Customer Group already exists.')) {
127+
if ($e->getMessage() == (string)__('Customer Group already exists.')) {
128128
throw new InvalidTransitionException('Customer Group already exists.');
129129
}
130130
throw $e;

0 commit comments

Comments
 (0)