Skip to content

Commit

Permalink
Fix typo in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Waz committed Oct 21, 2022
1 parent fc04bed commit 02603b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion big_tests/tests/graphql_muc_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ user_try_create_instant_room_with_invalid_name(Config) ->

user_try_create_instant_room_with_invalid_name_story(Config, Alice) ->
Res = user_create_instant_room(Alice, muc_helper:muc_host(), <<"test room">>, <<"Ali">>, Config),
?assertNotEqual(nomatch, binary:match(get_err_msg(Res), <<"Room name or domain are invalid">>)).
?assertNotEqual(nomatch, binary:match(get_err_msg(Res), <<"Room name or domain is invalid">>)).

user_try_delete_nonexistent_room(Config) ->
escalus:fresh_story_with_config(Config, [{alice, 1}],
Expand Down
2 changes: 1 addition & 1 deletion src/mod_muc_api.erl
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ create_instant_room(MUCDomain, Name, OwnerJID, Nick) ->
Error
end;
{true, error} ->
{invalid_input, "Room name or domain are invalid"};
{invalid_input, "Room name or domain is invalid"};
{false, _} ->
?USER_NOT_FOUND_RESULT
end.
Expand Down

0 comments on commit 02603b4

Please sign in to comment.