Skip to content

Commit

Permalink
[feat] #144 - 코드 틀렸을 경우 에러코드 반환하도록 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
khyojun committed Jun 18, 2024
1 parent 118d0ee commit b816422
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ private void clearCertifiedList(Map<String, Object> response, String email) thro
else log.error("[clearResponse] clear fail");
}

//TODO : 이거 오류 뱉을 수 있게 하기
private UnivCertResponseDto responsetoDto(Map<String, Object> univCertResponse, String successMessage) {
boolean success = Boolean.TRUE.equals(univCertResponse.get("success"));
if(!success) throw new UnivCertCodeException();
int status = success ? 200 : (Integer) univCertResponse.get("code");
String message = success ? successMessage : (String) univCertResponse.get("message");

Expand Down

0 comments on commit b816422

Please sign in to comment.