Skip to content

Commit bf2b4bf

Browse files
30179: resetPassword mutation returns generic error - fixed the error text issue
1 parent 1064e35 commit bf2b4bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CustomerGraphQl/Model/Resolver/ResetPassword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function resolve(
118118
$args['newPassword']
119119
);
120120
} catch (LocalizedException $e) {
121-
throw new GraphQlInputException(__('Cannot set the customer\'s password'), $e);
121+
throw new GraphQlInputException(__($e->getMessage()), $e);
122122
}
123123
}
124124
}

0 commit comments

Comments
 (0)