mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
commit
1019e9dd05
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user