BUG Make invalid dev actions 404 not 500 error

Fixes #8012
This commit is contained in:
Damian Mooyman 2018-04-18 11:37:31 +12:00
parent e2c8c80f02
commit f83691e7f7
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A

View File

@ -132,7 +132,7 @@ class DevelopmentAdmin extends Controller
// 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);
}
}