aboutsummaryrefslogtreecommitdiff
path: root/http-fetch.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-15 11:13:55 -0700
committerJunio C Hamano <junkio@cox.net>2005-10-15 11:13:55 -0700
commitf80376c5976143a1788ecc4f7ca86ac0ec8b9874 (patch)
tree54ebc3a86de84dbfd314bf2f994ae4d0ceacc6d9 /http-fetch.c
parent7baa3e8694d823ce9731172c700bf0d780ae283e (diff)
downloadgit-f80376c5976143a1788ecc4f7ca86ac0ec8b9874.tar.gz
git-f80376c5976143a1788ecc4f7ca86ac0ec8b9874.tar.xz
Show curl error a bit better.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'http-fetch.c')
-rw-r--r--http-fetch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/http-fetch.c b/http-fetch.c
index 40bd0b430..da4d2f2c6 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;
}