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