]> granicus.if.org Git - ejabberd/commitdiff
Fix error reporting in previous commit
authorBadlop <badlop@process-one.net>
Wed, 30 Apr 2014 14:02:20 +0000 (16:02 +0200)
committerBadlop <badlop@process-one.net>
Wed, 30 Apr 2014 14:02:20 +0000 (16:02 +0200)
src/ejabberd_xmlrpc.erl

index da9b12606074c8c97852479fa3b2d75652140e5c..ff89d285880f7d1f1d21656e693bc7d5dc3b5c30 100644 (file)
@@ -431,8 +431,8 @@ format_arg(Arg, binary) when is_binary(Arg) -> Arg;
 format_arg(Arg, string) when is_list(Arg) -> list_to_binary(Arg);
 format_arg(Arg, string) when is_binary(Arg) -> Arg;
 format_arg(Arg, Format) ->
-    ?ERROR_MSG("don't know how to format Arg ~p for format ~p , [Arg, Format]")
-    error.
+    ?ERROR_MSG("don't know how to format Arg ~p for format ~p", [Arg, Format]),
+    throw({error_formatting_argument, Arg, Format}).
 
 %% -----------------------------
 %% Result