From 983d36b7eed36fe43bfb9536f81f245e12aee562 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 27 May 2019 15:00:10 +1200 Subject: [PATCH] FIX: Better message when form action handler not found. Fixes #4622 to some extent, although this fix will be most useful when https://github.com/silverstripe/silverstripe-errorpage/issues/30 is addressed also. --- src/Forms/FormRequestHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forms/FormRequestHandler.php b/src/Forms/FormRequestHandler.php index 835b0762c..2aa0289e2 100644 --- a/src/Forms/FormRequestHandler.php +++ b/src/Forms/FormRequestHandler.php @@ -260,7 +260,7 @@ class FormRequestHandler extends RequestHandler ); } - return $this->httpError(404); + return $this->httpError(404, "Could not find a suitable form-action callback function"); } /**