Skip to content

Commit

Permalink
Fixed error structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
goura committed Aug 12, 2010
1 parent 1a55a26 commit a6f5a7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/erlaws_s3.erl
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ genericRequest( Method, Bucket, Path, QueryParams, Metadata,

{ok, {{_HttpVersion, Code, ReasonPhrase}, ResponseHeaders,
_ResponseBody }} when Code=:=500, NrOfRetries == 0 ->
throw ({error, "500", ReasonPhrase,
proplists:get_value(?S3_REQ_ID_HEADER, ResponseHeaders)});
throw ({error, {"500", ReasonPhrase,
proplists:get_value(?S3_REQ_ID_HEADER, ResponseHeaders)}});

{ok, {{_HttpVersion, Code, _ReasonPhrase}, _ResponseHeaders,
_ResponseBody }} when Code=:=500 ->
Expand Down

0 comments on commit a6f5a7f

Please sign in to comment.