Skip to content

Commit

Permalink
Addressed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshiAthapaththu committed Apr 27, 2022
1 parent 2ed07e7 commit 8718b4c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ public Response recoverUsernamePost(List<UserClaimDTO> claim, String tenantDomai
} catch (IdentityRecoveryException e) {
if (e.getCause() != null && StringUtils.equals(Constants.ERROR_MESSAGE_EMAIL_NOT_FOUND,
e.getCause().getMessage())) {
LOG.error(e.getCause().getMessage(), e.getCause());
RecoveryUtil.handleBadRequest(e.getCause().getMessage(), Constants.ERROR_CODE_EMAIL_NOT_FOUND);
if (LOG.isDebugEnabled()) {
LOG.debug(e.getCause().getMessage());
}
return Response.ok().build();
}
RecoveryUtil.handleInternalServerError(Constants.SERVER_ERROR, e.getErrorCode(), LOG, e);
} catch (Throwable throwable) {
Expand Down

0 comments on commit 8718b4c

Please sign in to comment.