RED-7539: changed error message when validating password causes an error

This commit is contained in:
Ali Oezyetimoglu 2024-01-19 16:04:41 +01:00
parent 93a1b1fcda
commit 08ed0f29c0

View File

@ -277,7 +277,7 @@ public class UserService {
try {
changeEmailClient.tokenManager().getAccessTokenString();
} catch (NotAuthorizedException e) {
throw new ResponseStatusException(HttpStatus.BAD_REQUEST);
throw new ResponseStatusException(HttpStatus.BAD_REQUEST, "Could not confirm credentials");
}
changeEmailClient.close();