From: Daniel Stenberg Date: Sat, 17 Apr 2004 11:33:47 +0000 (+0000) Subject: Gisle made a failed connect output the reason for it X-Git-Tag: curl-7_11_2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=78ebe3fa5ab9c098d2808d74e8e83aa738a241f0;p=thirdparty%2Fcurl.git Gisle made a failed connect output the reason for it --- diff --git a/lib/connect.c b/lib/connect.c index 8bb4e2c43b..24663289d7 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -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; }