diff --git a/Classes/XClass/Controller/FormFrontendController.php b/Classes/XClass/Controller/FormFrontendController.php index e135dc6f..bc62fb04 100644 --- a/Classes/XClass/Controller/FormFrontendController.php +++ b/Classes/XClass/Controller/FormFrontendController.php @@ -241,7 +241,7 @@ private function prepareErrors(array $errors, string $formIdentifier): ?array $parsedErrors = []; foreach ($errors as $key => $errorObj) { - $parsedErrors[str_replace($formIdentifier . '.', '', $key)] = $errorObj[0]->getMessage(); + $parsedErrors[str_replace($formIdentifier . '.', '', $key)] = $errorObj[0]->render(); } return count($parsedErrors) ? $parsedErrors : null;