mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Flatten strings in ejabberd_xmlrpc error results
This commit is contained in:
parent
9822535e70
commit
b1d458999a
@ -342,8 +342,12 @@ process_unicode_codepoints(Str) ->
|
||||
%% Result
|
||||
%% -----------------------------
|
||||
|
||||
format_result({error, Error}, _) when is_list(Error) ->
|
||||
throw({error, lists:flatten(Error)});
|
||||
format_result({error, Error}, _) ->
|
||||
throw({error, Error});
|
||||
format_result({error, _Type, _Code, Error}, _) when is_list(Error) ->
|
||||
throw({error, lists:flatten(Error)});
|
||||
format_result({error, _Type, _Code, Error}, _) ->
|
||||
throw({error, Error});
|
||||
format_result(String, string) -> lists:flatten(String);
|
||||
|
Loading…
Reference in New Issue
Block a user