Skip to content

Commit

Permalink
Show curl error a bit better.
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Oct 15, 2005
1 parent 7baa3e8 commit f80376c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion http-fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,9 @@ static int fetch_object(struct alt_base *repo, unsigned char *sha1)
}

if (request->curl_result != CURLE_OK && request->http_code != 416) {
ret = error("%s", request->errorstr);
ret = error("%s (curl_result = %d, http_code = %ld, sha1 = %s)",
request->errorstr, request->curl_result,
request->http_code, hex);
release_request(request);
return ret;
}
Expand Down

0 comments on commit f80376c

Please sign in to comment.