1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-05 10:39:29 +02:00

Use xmpp:io_format_error/1 wherever possible

This commit is contained in:
Evgeniy Khramtsov 2017-11-14 09:02:43 +03:00
parent 474536817e
commit f953621ed2
8 changed files with 10 additions and 10 deletions

View file

@ -240,7 +240,7 @@ handle_iq(Packet, State) ->
end
catch _:{xmpp_codec, Why} ->
Lang = xmpp:get_lang(Packet),
Err = xmpp:err_bad_request(xmpp:format_error(Why), Lang),
Err = xmpp:err_bad_request(xmpp:io_format_error(Why), Lang),
ejabberd_router:route_error(Packet, Err)
end.