RED-5293: 500 for invalid tenant

This commit is contained in:
Ali Oezyetimoglu 2022-11-07 14:57:26 +01:00
parent 2beef30abb
commit 5924d12059

View File

@ -100,7 +100,7 @@ public class ControllerAdvice {
@ExceptionHandler(value = MethodArgumentNotValidException.class)
public ErrorMessage handleMethodArgumentNotValidException(MethodArgumentNotValidException e) {
return new ErrorMessage(OffsetDateTime.now(), e.getMessage());
return new ErrorMessage(OffsetDateTime.now(), String.format("You have empty/wrong formatted parameters: %s", e.getParameter()));
}
}