Merge pull request #8015 from open-sausages/pulls/4.0/dev-error-4

BUG Make invalid dev actions 404 not 500 error
This commit is contained in:
Daniel Hensby 2018-04-18 16:08:52 +01:00 committed by GitHub
commit 1019e9dd05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}
}