mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 19:42:11 +02:00
Provide proper error message when create_room fails with invalid_service
This commit is contained in:
parent
5beaf50c67
commit
e22ed8081a
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue