From e1fa945e7e55bf0dd2cc0de482753e00c2f36116 Mon Sep 17 00:00:00 2001 From: Lars Buitinck Date: Wed, 31 Oct 2012 16:58:53 +0100 Subject: Curl_connecthost: friendlier "couldn't connect" message --- lib/connect.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/connect.c b/lib/connect.c index dc6291bda..1651e6e20 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -1101,7 +1101,9 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */ if(sockfd == CURL_SOCKET_BAD) { /* no good connect was made */ - failf(data, "couldn't connect to host"); + failf(data, "couldn't connect to %s at %s:%d", + conn->bits.proxy?"proxy":"host", + conn->bits.proxy?conn->proxy.name:conn->host.name, conn->port); return CURLE_COULDNT_CONNECT; } -- cgit v1.2.3