From ac24d6ee9f6a64561a5d86ed5d67a4da239e08f5 Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 18 Dec 2020 17:06:14 +0100 Subject: [PATCH] Fix typo in case clause detected by Dialyzer --- src/mod_muc_admin.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_muc_admin.erl b/src/mod_muc_admin.erl index e36e3398f..d80e71589 100644 --- a/src/mod_muc_admin.erl +++ b/src/mod_muc_admin.erl @@ -1244,7 +1244,7 @@ set_room_affiliation(Name, Service, JID, AffiliationString) -> case mod_muc_room:change_item(Pid, jid:decode(JID), affiliation, Affiliation, <<"">>) of {ok, _} -> ok; - {error, not_found} -> + {error, notfound} -> throw({error, "Room doesn't exists"}); {error, _} -> throw({error, "Unable to perform change"})