remote-curl: include curl_errorstr on SSL setup failures
commit00540458a82ff2454ae1cc63e38a9ce4a1eea878
authorShawn Pearce <spearce@spearce.org>
Sun, 14 Feb 2016 01:39:34 +0000 (13 17:39 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Feb 2016 21:21:43 +0000 (15 13:21 -0800)
tree4582a0ee4e7fab32af5d1b3afb683d2d46f9745e
parenta08595f76159b09d57553e37a5123f1091bb13e7
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>
remote-curl.c