Skip to content
Snippets Groups Projects
Commit 6cd25360 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

set an error message when connection fails

parent 60fccf4e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment