commit | 00540458a82ff2454ae1cc63e38a9ce4a1eea878 | [log] [tgz] |
---|---|---|
author | Shawn Pearce <spearce@spearce.org> | Sat Feb 13 17:39:34 2016 -0800 |
committer | Junio C Hamano <gitster@pobox.com> | Mon Feb 15 13:21:43 2016 -0800 |
tree | 4582a0ee4e7fab32af5d1b3afb683d2d46f9745e | |
parent | a08595f76159b09d57553e37a5123f1091bb13e7 [diff] |
remote-curl: include curl_errorstr on SSL setup failures For curl error 35 (CURLE_SSL_CONNECT_ERROR) users need the additional text stored in CURLOPT_ERRORBUFFER to debug why the connection did not start. This is curl_errorstr inside of http.c, so include that in the message if it is non-empty. Sometimes HTTP response codes aren't yet available, such as when the SSL setup fails. Don't include HTTP 0 in the message. Signed-off-by: Shawn Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>