From f83691e7f7e7a75657df1211673b72d9cf4c4b4f Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Wed, 18 Apr 2018 11:37:31 +1200 Subject: [PATCH] BUG Make invalid dev actions 404 not 500 error Fixes #8012 --- src/Dev/DevelopmentAdmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dev/DevelopmentAdmin.php b/src/Dev/DevelopmentAdmin.php index 267d3386ae1..734e980cea2 100644 --- a/src/Dev/DevelopmentAdmin.php +++ b/src/Dev/DevelopmentAdmin.php @@ -132,7 +132,7 @@ public function runRegisteredController(HTTPRequest $request) // in CLI we cant use httpError because of a bug with stuff being in the output already, see DevAdminControllerTest throw new Exception($msg); } else { - $this->httpError(500, $msg); + $this->httpError(404, $msg); } }