author | Jonathan Nieder <jrnieder@gmail.com> | |
Mon, 5 Sep 2011 22:22:02 +0000 (17:22 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 6 Sep 2011 22:49:23 +0000 (15:49 -0700) | ||
commit | be22d92eac809ad2bfa2b7c83ad7cad5a15f1c43 | |
tree | 00b16e38ddba2da091c1091b74bc5ec80e3e76ee | tree | snapshot |
parent | 8abc5082222b7f65e07453a0aca46ce6d25ce3a5 | commit | diff |
http: avoid empty error messages for some curl errors
When asked to fetch over SSL without a valid
/etc/ssl/certs/ca-certificates.crt file, "git fetch" writes
error: while accessing https://github.com/torvalds/linux.git/info/refs
which is a little disconcerting. Better to fall back to
curl_easy_strerror(result) when the error string is empty, like the
curl utility does:
error: Problem with the SSL CA cert (path? access rights?) while
accessing https://github.com/torvalds/linux.git/info/refs
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When asked to fetch over SSL without a valid
/etc/ssl/certs/ca-certificates.crt file, "git fetch" writes
error: while accessing https://github.com/torvalds/linux.git/info/refs
which is a little disconcerting. Better to fall back to
curl_easy_strerror(result) when the error string is empty, like the
curl utility does:
error: Problem with the SSL CA cert (path? access rights?) while
accessing https://github.com/torvalds/linux.git/info/refs
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c | diff | blob | history |