Skip to content

Commit

Permalink
fix: runtimeException 예외 메시지를 사용자에게 반환하는 문제를 수정합니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
hseong3243 committed Jan 8, 2024
1 parent 31880d8 commit 6728e30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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

0 comments on commit 6728e30

Please sign in to comment.