aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mod_admin_extra.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl
index f33784a70..db1f37296 100644
--- a/src/mod_admin_extra.erl
+++ b/src/mod_admin_extra.erl
@@ -1513,6 +1513,9 @@ send_stanza(FromString, ToString, Stanza) ->
catch _:{xmpp_codec, Why} ->
io:format("incorrect stanza: ~ts~n", [xmpp:format_error(Why)]),
{error, Why};
+ _:{badmatch, {error, {Code, Why}}} when is_integer(Code) ->
+ io:format("invalid xml: ~p~n", [Why]),
+ {error, Why};
_:{badmatch, {error, Why}} ->
io:format("invalid xml: ~p~n", [Why]),
{error, Why};