aboutsummaryrefslogtreecommitdiff
path: root/src/mod_muc_admin.erl
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2021-07-08 12:48:19 +0200
committerBadlop <badlop@process-one.net>2021-07-13 20:43:52 +0200
commite22ed8081af971d5e875f6ad4a0a9714b82c67e2 (patch)
tree948edc0c4c62547dae062aa01e6f86907e1a987f /src/mod_muc_admin.erl
parentFix spec: xmpp:set_from_to/3 allows undefined as second argument (diff)
Provide proper error message when create_room fails with invalid_service
Diffstat (limited to 'src/mod_muc_admin.erl')
-rw-r--r--src/mod_muc_admin.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mod_muc_admin.erl b/src/mod_muc_admin.erl
index 47b28f7a8..88ae041f9 100644
--- a/src/mod_muc_admin.erl
+++ b/src/mod_muc_admin.erl
@@ -700,6 +700,8 @@ create_room_with_opts(Name1, Host1, ServerHost1, CustomRoomOpts) ->
{error, _} ->
throw({error, "Unable to start room"})
end;
+ invalid_service ->
+ throw({error, "Invalid 'service'"});
_ ->
throw({error, "Room already exists"})
end