From ad8fe8c14734efb2243079bd5b0abccaa5ba3ca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 12 Oct 2015 21:43:57 +0200 Subject: [PATCH] throw an error on 404 --- Controller/PersonController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/PersonController.php b/Controller/PersonController.php index 89745b6a3..42b2cd1ae 100644 --- a/Controller/PersonController.php +++ b/Controller/PersonController.php @@ -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"); }