Skip to content

Commit

Permalink
refactor : 500 에러 메시지 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
woo0doo committed Feb 18, 2024
1 parent 199f9be commit 64e2730
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class GlobalExceptionHandler {
public ResponseEntity<ExceptionResponse> handleException(final Exception e) {
log.error("[" + e.getClass() + "] : " + e.getMessage());
return ResponseEntity.internalServerError()
.body(ExceptionResponse.of(100, "알 수 없는 서버 에러가 발생했습니다."));
.body(ExceptionResponse.of(100, e.getMessage()));
}

//valid 검증
Expand Down

0 comments on commit 64e2730

Please sign in to comment.