]> granicus.if.org Git - curl/commitdiff
Gisle made a failed connect output the reason for it
authorDaniel Stenberg <daniel@haxx.se>
Sat, 17 Apr 2004 11:33:47 +0000 (11:33 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 17 Apr 2004 11:33:47 +0000 (11:33 +0000)
lib/connect.c

index 8bb4e2c43bc21533f98e2f85b822b2be7e40daa2..24663289d7948c01105feb2a87fae83b1cd655a4 100644 (file)
@@ -696,7 +696,7 @@ CURLcode Curl_connecthost(struct connectdata *conn,  /* context */
   if (sockfd == CURL_SOCKET_BAD) {
     /* no good connect was made */
     *sockconn = -1;
-    failf(data, "Connect failed");
+    failf(data, "Connect failed; %s", Curl_strerror(conn,Curl_ourerrno()));
     return CURLE_COULDNT_CONNECT;
   }