aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Buitinck <L.J.Buitinck@uva.nl>2012-10-31 16:58:53 +0100
committerDaniel Stenberg <daniel@haxx.se>2012-11-07 22:55:33 +0100
commite1fa945e7e55bf0dd2cc0de482753e00c2f36116 (patch)
treed2b4ac9164d5bd1a4f5bf56e9b96b30f466ab75e
parentcda6d891aba76f2080e5404589fb8fd0d809df0a (diff)
Curl_connecthost: friendlier "couldn't connect" message
-rw-r--r--lib/connect.c4
1 files changed, 3 insertions, 1 deletions
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;
}