Skip to content

Commit f80376c

Browse files
author
Junio C Hamano
committed
Show curl error a bit better.
Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 7baa3e8 commit f80376c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

http-fetch.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,9 @@ static int fetch_object(struct alt_base *repo, unsigned char *sha1)
10491049
}
10501050

10511051
if (request->curl_result != CURLE_OK && request->http_code != 416) {
1052-
ret = error("%s", request->errorstr);
1052+
ret = error("%s (curl_result = %d, http_code = %ld, sha1 = %s)",
1053+
request->errorstr, request->curl_result,
1054+
request->http_code, hex);
10531055
release_request(request);
10541056
return ret;
10551057
}

0 commit comments

Comments
 (0)