Skip to content

Commit 828cf36

Browse files
committed
feat(exception-handler): 400 에러 title 문구 변경
1 parent c672ab2 commit 828cf36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/somemore/global/handler/GlobalExceptionHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ ProblemDetail handleBadRequestException(final BadRequestException e) {
1919
//status와 에러에 대한 자세한 설명
2020
ProblemDetail problemDetail = ProblemDetail.forStatusAndDetail(HttpStatus.BAD_REQUEST, e.getMessage());
2121

22-
//아래와 같이 필드 확장 가능
23-
problemDetail.setTitle("무슨 에러입니다");
22+
// 아래와 같이 필드 확장 가능
23+
problemDetail.setTitle("잘못된 요청입니다");
2424

2525
return problemDetail;
2626
}

0 commit comments

Comments
 (0)