Repair error reporting in {error, Reason} case

This commit is contained in:
Tim Stewart 2014-10-21 12:44:30 -04:00
parent d744d77288
commit d265730f31
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ post_xml(Xml) ->
ok. ok.
post_result({_ReqId, {error, Reason}}) -> post_result({_ReqId, {error, Reason}}) ->
report_error(Reason); report_error([ {error, Reason } ]);
post_result({_ReqId, Result}) -> post_result({_ReqId, Result}) ->
{StatusLine, Headers, Body} = Result, {StatusLine, Headers, Body} = Result,
{_HttpVersion, StatusCode, ReasonPhrase} = StatusLine, {_HttpVersion, StatusCode, ReasonPhrase} = StatusLine,