From ec542f6daf9d21d63b5c390e8b4468f968beb931 Mon Sep 17 00:00:00 2001 From: cabbage16 Date: Fri, 6 Sep 2024 10:54:18 +0900 Subject: [PATCH] =?UTF-8?q?fix(#105):=20=EC=97=90=EB=9F=AC=20=EB=A9=94?= =?UTF-8?q?=EC=8B=9C=EC=A7=80=20=EC=88=98=EC=A0=95=20-=20Request=20Body?= =?UTF-8?q?=EC=9D=98=20=EA=B0=92=EC=9D=84=20=EC=9E=98=EB=AA=BB=20=EB=84=A3?= =?UTF-8?q?=EC=97=88=EC=9D=84=20=EB=95=8C=20=EC=A7=80=EC=A0=95=ED=95=9C=20?= =?UTF-8?q?=EC=97=90=EB=9F=AC=20=EB=A9=94=EC=8B=9C=EC=A7=80=20=EB=8C=80?= =?UTF-8?q?=EC=8B=A0=20=EB=82=B4=EB=B6=80=20=EC=97=90=EB=9F=AC=20=EB=A9=94?= =?UTF-8?q?=EC=8B=9C=EC=A7=80=20=EC=A0=84=EC=B2=B4=EA=B0=80=20=EC=B6=9C?= =?UTF-8?q?=EB=A0=A5=EB=90=98=EB=8A=94=20=EC=98=A4=EB=A5=98=EB=A5=BC=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0=ED=96=88=EC=96=B4=EC=9A=94.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/bamdoliro/maru/shared/error/GlobalExceptionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)