]> granicus.if.org Git - ejabberd/commitdiff
Recover ec6c58a which was reverted in 100827e (thanks to Alexey Shchepin)
authorBadlop <badlop@process-one.net>
Fri, 10 Jun 2016 11:18:32 +0000 (13:18 +0200)
committerBadlop <badlop@process-one.net>
Fri, 10 Jun 2016 11:18:32 +0000 (13:18 +0200)
src/ejabberd_xmlrpc.erl

index c7e72d66d4b18af9db0b011d17bd76dab668bf05..aa37b643a3da9314c06315bcee383e4bf6afbb41 100644 (file)
@@ -472,7 +472,7 @@ format_arg(undefined, binary) -> <<>>;
 format_arg(undefined, string) -> "";
 format_arg(Arg, Format) ->
     ?ERROR_MSG("don't know how to format Arg ~p for format ~p", [Arg, Format]),
-    error.
+    throw({error_formatting_argument, Arg, Format}).
 
 process_unicode_codepoints(Str) ->
     iolist_to_binary(lists:map(fun(X) when X > 255 -> unicode:characters_to_binary([X]);