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
1 changed files with 4 additions and 0 deletions

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