diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-09-19 14:27:56 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-09-19 14:27:56 +0000 |
commit | 6cd25360480e20ce796a43a76e65bf0b07230c7c (patch) | |
tree | 7c4d9d3f7e873d769d80fc9c8804726cf7e34973 | |
parent | 60fccf4e376de8ee3498291a2a68d3e931991c55 (diff) |
set an error message when connection fails
-rw-r--r-- | lib/connect.c | 1 |
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; } |