Gisle made a failed connect output the reason for it

This commit is contained in:
Daniel Stenberg 2004-04-17 11:33:47 +00:00
parent a8e8e51b14
commit 78ebe3fa5a
1 changed files with 1 additions and 1 deletions

View File

@ -696,7 +696,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
if (sockfd == CURL_SOCKET_BAD) {
/* no good connect was made */
*sockconn = -1;
failf(data, "Connect failed");
failf(data, "Connect failed; %s", Curl_strerror(conn,Curl_ourerrno()));
return CURLE_COULDNT_CONNECT;
}