aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-09-19 14:27:56 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-09-19 14:27:56 +0000
commit6cd25360480e20ce796a43a76e65bf0b07230c7c (patch)
tree7c4d9d3f7e873d769d80fc9c8804726cf7e34973 /lib
parent60fccf4e376de8ee3498291a2a68d3e931991c55 (diff)
set an error message when connection fails
Diffstat (limited to 'lib')
-rw-r--r--lib/connect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 9d29a0a27..f6d10f60e 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -745,6 +745,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
if (sockfd == CURL_SOCKET_BAD) {
/* no good connect was made */
*sockconn = CURL_SOCKET_BAD;
+ failf(data, "couldn't connect to host");
return CURLE_COULDNT_CONNECT;
}