diff --git a/src/main/java/com/bamdoliro/maru/shared/error/GlobalExceptionHandler.java b/src/main/java/com/bamdoliro/maru/shared/error/GlobalExceptionHandler.java index e40ab739..ce677cf2 100644 --- a/src/main/java/com/bamdoliro/maru/shared/error/GlobalExceptionHandler.java +++ b/src/main/java/com/bamdoliro/maru/shared/error/GlobalExceptionHandler.java @@ -74,7 +74,7 @@ public ResponseEntity 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)