1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-01 01:41:50 -05:00

set an error message when connection fails

This commit is contained in:
Daniel Stenberg 2004-09-19 14:27:56 +00:00
parent 60fccf4e37
commit 6cd2536048

View 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;
}