diff --git a/piikii-input-http/src/main/kotlin/com/piikii/input/http/controller/PlaceApi.kt b/piikii-input-http/src/main/kotlin/com/piikii/input/http/controller/PlaceApi.kt index 5e4d05eb..909f1367 100644 --- a/piikii-input-http/src/main/kotlin/com/piikii/input/http/controller/PlaceApi.kt +++ b/piikii-input-http/src/main/kotlin/com/piikii/input/http/controller/PlaceApi.kt @@ -35,7 +35,7 @@ class PlaceApi( @PostMapping override fun addPlace( @NotNull @PathVariable roomUid: UUID, - @Valid @RequestPart addPlaceRequest: AddPlaceRequest, + @Valid @NotNull @RequestPart addPlaceRequest: AddPlaceRequest, @RequestPart(required = false) placeImages: List?, ): ResponseForm { return ResponseForm(placeUseCase.addPlace(UuidTypeId(roomUid), addPlaceRequest, placeImages)) diff --git a/piikii-input-http/src/main/kotlin/com/piikii/input/http/web/advice/ExceptionAdvice.kt b/piikii-input-http/src/main/kotlin/com/piikii/input/http/web/advice/ExceptionAdvice.kt index d14d417a..a079c845 100644 --- a/piikii-input-http/src/main/kotlin/com/piikii/input/http/web/advice/ExceptionAdvice.kt +++ b/piikii-input-http/src/main/kotlin/com/piikii/input/http/web/advice/ExceptionAdvice.kt @@ -52,8 +52,9 @@ class ExceptionAdvice( "${violation.propertyPath}: ${violation.message}" } } + else -> { - "Cause is chaos" + "Cause is chaos [${exception.message}]" } }