Skip to content

Commit

Permalink
Merge pull request #121 from Bamdoliro/perf/#105
Browse files Browse the repository at this point in the history
fix(#105): 에러 메시지 수정
  • Loading branch information
jyj1289 authored Sep 7, 2024
2 parents 44b8d43 + ec542f6 commit 173063a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public ResponseEntity<ErrorResponse> enumMismatchException(MethodArgumentNotVali

return ResponseEntity
.status(GlobalErrorProperty.BAD_REQUEST.getStatus())
.body(new ErrorResponse(GlobalErrorProperty.BAD_REQUEST, e.getMessage()));
.body(new ErrorResponse(GlobalErrorProperty.BAD_REQUEST, e.getBindingResult().getFieldErrors().get(0).getDefaultMessage()));
}

@ExceptionHandler(FileSizeLimitExceededException.class)
Expand Down

0 comments on commit 173063a

Please sign in to comment.