Provide proper error message when create_room fails with invalid_service
This commit is contained in:
parent
5beaf50c67
commit
e22ed8081a
|
@ -700,6 +700,8 @@ create_room_with_opts(Name1, Host1, ServerHost1, CustomRoomOpts) ->
|
||||||
{error, _} ->
|
{error, _} ->
|
||||||
throw({error, "Unable to start room"})
|
throw({error, "Unable to start room"})
|
||||||
end;
|
end;
|
||||||
|
invalid_service ->
|
||||||
|
throw({error, "Invalid 'service'"});
|
||||||
_ ->
|
_ ->
|
||||||
throw({error, "Room already exists"})
|
throw({error, "Room already exists"})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue