mirror of
https://github.com/curl/curl.git
synced 2026-07-22 17:37:17 +03:00
set an error message when connection fails
This commit is contained in:
parent
60fccf4e37
commit
6cd2536048
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue