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:
parent
474536817e
commit
f953621ed2
8 changed files with 10 additions and 10 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue