Repair error reporting in {error, Reason} case
This commit is contained in:
		
							parent
							
								
									d744d77288
								
							
						
					
					
						commit
						d265730f31
					
				@ -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,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user