mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-13 16:59:42 +00:00
throw an error on 404
This commit is contained in:
@@ -52,7 +52,7 @@ class PersonController extends Controller
|
|||||||
$person = $this->_getPerson($person_id);
|
$person = $this->_getPerson($person_id);
|
||||||
|
|
||||||
if ($person === null) {
|
if ($person === null) {
|
||||||
return $this->createNotFoundException("Person with id $person_id not"
|
throw $this->createNotFoundException("Person with id $person_id not"
|
||||||
. " found on this server");
|
. " found on this server");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user