From: Junio C Hamano Date: Sat, 15 Oct 2005 18:13:55 +0000 (-0700) Subject: Show curl error a bit better. X-Git-Tag: v0.99.9~122 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f80376c5976143a1788ecc4f7ca86ac0ec8b9874;p=git.git Show curl error a bit better. Signed-off-by: Junio C Hamano --- diff --git a/http-fetch.c b/http-fetch.c index 40bd0b43..da4d2f2c 100644 --- a/http-fetch.c +++ b/http-fetch.c @@ -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; }