mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
throw an error on 404
This commit is contained in:
parent
772499ce89
commit
ad8fe8c147
@ -52,7 +52,7 @@ class PersonController extends Controller
|
||||
$person = $this->_getPerson($person_id);
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user