From 2c3a58d44e858381f8324643d7727b71a8e5c2dc Mon Sep 17 00:00:00 2001 From: Jonny Tischbein Date: Fri, 14 Sep 2018 10:06:26 +0200 Subject: [PATCH] api_friendhips_destroy function header --- include/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/api.php b/include/api.php index faa465b18b..db42d63c5b 100644 --- a/include/api.php +++ b/include/api.php @@ -3679,7 +3679,7 @@ function api_friendships_destroy($type) } else { logger("No owner found", LOGGER_DEBUG); - throw new Exception("Error Processing Request"); + throw new NoFoundException("Error Processing Request"); } // Sharing-only contacts get deleted as there no relationship any more