25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Provide proper error message when create_room fails with invalid_service

This commit is contained in:
Badlop 2021-07-08 12:48:19 +02:00
parent 5beaf50c67
commit e22ed8081a

View File

@ -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