throw an error on 404

This commit is contained in:
Julien Fastré 2015-10-12 21:43:57 +02:00
parent 772499ce89
commit ad8fe8c147

View File

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