From: Badlop Date: Wed, 30 Apr 2014 14:02:20 +0000 (+0200) Subject: Fix error reporting in previous commit X-Git-Tag: 14.05~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec6c58a;p=ejabberd Fix error reporting in previous commit --- diff --git a/src/ejabberd_xmlrpc.erl b/src/ejabberd_xmlrpc.erl index da9b12606..ff89d2858 100644 --- a/src/ejabberd_xmlrpc.erl +++ b/src/ejabberd_xmlrpc.erl @@ -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