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:
parent
60fccf4e37
commit
6cd2536048
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user