提交 f80376c5 编写于 作者: J Junio C Hamano

Show curl error a bit better.

Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 7baa3e86
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册