Skip to content

Commit

Permalink
fix: runtimeException 예외 핸들러가 예외 메시지를 그대로 반환하지 않도록 수정한다. (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
hseong3243 authored Jan 8, 2024
1 parent 2faf8ad commit 7fbae7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class GlobalExceptionHandler {
public ResponseEntity<ErrorResponse> runtimeEx(RuntimeException e) {
return ResponseEntity.status(INTERNAL_SERVER_ERROR)
.body(new ErrorResponse(ErrorCode.INTERNAL_SERVER_ERROR.getValue(),
"예측하지 못한 예외가 발생하였습니다." + e.getMessage()));
"예측하지 못한 예외가 발생하였습니다."));
}

@ExceptionHandler(BadRequestException.class)
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/backend-config

0 comments on commit 7fbae7f

Please sign in to comment.