Skip to content

Commit

Permalink
[fix] 에러처리 방식 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryeolee committed Mar 25, 2024
1 parent 6b73d0d commit f6537f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ private BaseResponseDto validateRefreshToken(Long userId, String refreshToken) {

return null;
}
return BaseResponseDto.of(ErrorCode.WRONG_TOKEN,null);
return BaseResponseDto.of(ErrorCode.WRONG_TOKEN,"일치하지 않는 토큰입니다.");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private <T> BaseResponseDto verifySocialUserData(T data){

if(data == null){

return BaseResponseDto.of(ErrorCode.NOT_FOUND_USER, null);
return BaseResponseDto.of(ErrorCode.NOT_FOUND_USER, "요청한 유저 정보가 없습니다.");
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
public enum ErrorCode implements ResponseCode {

// 1000 auth 오류
NOT_FOUND_USER(1000, "요청한 유저 정보가 없습니다."),
WRONG_TOKEN(1001, "일치하지 않는 토큰입니다."),
NOT_FOUND_USER(1000, "유저 오류입니다."),
WRONG_TOKEN(1001, "토큰 오류입니다."),

// 4xx Client Error
BAD_REQUEST(400, "잘못된 요청입니다."),
Expand Down

0 comments on commit f6537f6

Please sign in to comment.