Skip to content

Commit

Permalink
feat: 서버에서 발생한 에러 메시지를 사용자에게 숨기도록 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
nak-honest committed Aug 8, 2024
1 parent 76840e7 commit 6e68ad7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public ResponseEntity<ExceptionResponse> handleForbiddenException(ForbiddenExcep
public ResponseEntity<ExceptionResponse> handleException(Exception exception) {
log.error("EXCEPTION :: stackTrace = {}", exception.getStackTrace());

ExceptionResponse data = new ExceptionResponse(exception.getMessage());
ExceptionResponse data = new ExceptionResponse("서버에 문제가 발생했습니다. 투룻에 문의해 주세요.");
return ResponseEntity.internalServerError()
.body(data);
}
Expand Down

0 comments on commit 6e68ad7

Please sign in to comment.