25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Flatten strings in ejabberd_xmlrpc error results

This commit is contained in:
Badlop 2019-10-18 11:52:03 +02:00
parent 9822535e70
commit b1d458999a

View File

@ -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);