Skip to content
Snippets Groups Projects
Commit e1fa945e authored by Lars Buitinck's avatar Lars Buitinck Committed by Daniel Stenberg
Browse files

Curl_connecthost: friendlier "couldn't connect" message

parent cda6d891
No related branches found
No related tags found
No related merge requests found
......@@ -1101,7 +1101,9 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
if(sockfd == CURL_SOCKET_BAD) {
/* no good connect was made */
failf(data, "couldn't connect to host");
failf(data, "couldn't connect to %s at %s:%d",
conn->bits.proxy?"proxy":"host",
conn->bits.proxy?conn->proxy.name:conn->host.name, conn->port);
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