Skip to content

Commit

Permalink
[hotfix] #185 에러 메시지 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
khyojun committed Jan 24, 2025
1 parent 0cc5979 commit 4c73ac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/ggang/be/api/user/NicknameValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public class NicknameValidator {

public static void validate(String nickname){
if(!LengthValidator.rangelengthCheck(nickname, MIN_LENGTH, MAX_LENGTH))
throw new GongBaekException(ResponseError.INVALID_INPUT_LENGTH);
throw new GongBaekException(ResponseError.BAD_REQUEST);
if(!koreanPattern.matcher(nickname).find())
throw new GongBaekException(ResponseError.INVALID_INPUT_NICKNAME);
throw new GongBaekException(ResponseError.BAD_REQUEST);
}
}

0 comments on commit 4c73ac1

Please sign in to comment.