Skip to content

Commit

Permalink
returning proper error message and code which we got from idrepo
Browse files Browse the repository at this point in the history
Signed-off-by: khuddus shariff <[email protected]>
  • Loading branch information
Khuddusshariff0022 committed Mar 14, 2024
1 parent 06d1807 commit 001cc7f
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ public boolean idrepoCreateDraft(String id, String uin) throws ApisResourceAcces
List<ErrorDTO> error=response.getErrors();
regProcLogger.error("Error while creating draft for id " + id);
throw new IdrepoDraftException(error.get(0).getErrorCode(), error.get(0).getMessage());
// throw new IdrepoDraftException(PlatformErrorMessages.IDREPO_DRAFT_EXCEPTION.getCode(), PlatformErrorMessages.IDREPO_DRAFT_EXCEPTION.getMessage());
}
return (response.getErrors() == null || response.getErrors().isEmpty());
}
Expand Down

0 comments on commit 001cc7f

Please sign in to comment.