diff --git a/lib/Middleware/ThrottleFormAccessMiddleware.php b/lib/Middleware/ThrottleFormAccessMiddleware.php index 2379d638e..54a9012f2 100644 --- a/lib/Middleware/ThrottleFormAccessMiddleware.php +++ b/lib/Middleware/ThrottleFormAccessMiddleware.php @@ -25,7 +25,7 @@ public function afterException(Controller $controller, string $methodName, Excep } $response = new DataResponse( - $exception->getMessage(), + 'Form not found', $exception->getCode(), ); $response->throttle(['action' => 'form']);