api_friendhips_destroy function header

This commit is contained in:
Jonny Tischbein 2018-09-14 10:06:26 +02:00
parent 3eb539aefd
commit 2c3a58d44e

View file

@ -3679,7 +3679,7 @@ function api_friendships_destroy($type)
} }
else { else {
logger("No owner found", LOGGER_DEBUG); 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 // Sharing-only contacts get deleted as there no relationship any more