Commit 13bf4d7f133a7aac2ff449b985fbdeb5b5634acc

Patrick Steinhardt 2017-03-14T15:04:18

Merge pull request #4146 from pks-t/pks/winhttp-errors winhttp: disambiguate error messages when sending requests

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/transports/winhttp.c b/src/transports/winhttp.c
index ae41725..e8e8480 100644
--- a/src/transports/winhttp.c
+++ b/src/transports/winhttp.c
@@ -881,7 +881,7 @@ static int send_request(winhttp_stream *s, size_t len, int ignore_length)
 	}
 
 	if ((error = do_send_request(s, len, ignore_length)) < 0)
-		giterr_set(GITERR_OS, "failed to send request");
+		giterr_set(GITERR_OS, "failed to send request with unchecked certificate");
 
 	return error;
 }