Skip to content

Commit

Permalink
handle {ok,{http_error,_}} return
Browse files Browse the repository at this point in the history
  • Loading branch information
uwiger committed Nov 29, 2012
1 parent fb727ee commit a0415ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lhttpc_client.erl
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,8 @@ read_response(State, Vsn, {StatusCode, _} = Status, Hdrs) ->
attempts = State#client_state.attempts - 1
},
send_request(NewState);
{ok, {http_error, _} = Reason} ->
erlang:error(Reason);
{error, Reason} ->
erlang:error(Reason)
end.
Expand Down

0 comments on commit a0415ad

Please sign in to comment.