Fix error formatting, which closed client connection (#1389)

This commit is contained in:
Badlop 2016-12-01 21:02:35 +01:00
parent 68cf6845e1
commit 34f2a8a4f2
1 changed files with 2 additions and 2 deletions

View File

@ -2723,8 +2723,8 @@ find_changed_items(UJID, UAffiliation, URole,
Nick /= <<"">> ->
case find_jids_by_nick(Nick, StateData) of
[] ->
ErrText = {<<"Nickname ~s does not exist in the room">>,
[Nick]},
ErrText = str:format(<<"Nickname ~s does not exist in the room">>,
[Nick]),
throw({error, xmpp:err_not_acceptable(ErrText, Lang)});
JIDList ->
JIDList