mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08:00
Curl_connecthost: friendlier "couldn't connect" message
This commit is contained in:
parent
cda6d891ab
commit
e1fa945e7e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user