Skip to content

Commit

Permalink
BUG Make invalid dev actions 404 not 500 error
Browse files Browse the repository at this point in the history
Fixes #8012
  • Loading branch information
Damian Mooyman committed Apr 17, 2018
1 parent e2c8c80 commit f83691e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dev/DevelopmentAdmin.php
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit f83691e

Please sign in to comment.