set an error message when connection fails
authorDaniel Stenberg <daniel@haxx.se>
Sun, 19 Sep 2004 14:27:56 +0000 (14:27 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 19 Sep 2004 14:27:56 +0000 (14:27 +0000)
lib/connect.c

index 9d29a0a..f6d10f6 100644 (file)
@@ -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;
   }