mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:13:32 +03:00
improved failf() error messages
This commit is contained in:
parent
f03366bcbf
commit
44985e8884
2 changed files with 5 additions and 4 deletions
|
|
@ -869,13 +869,13 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
|
|||
}
|
||||
|
||||
if (portsock == CURL_SOCKET_BAD) {
|
||||
failf(data, "%s", Curl_strerror(conn,error));
|
||||
failf(data, "socket failure: %s", Curl_strerror(conn,error));
|
||||
return CURLE_FTP_PORT_FAILED;
|
||||
}
|
||||
|
||||
sslen = sizeof(ss);
|
||||
if (getsockname(portsock, sa, &sslen) < 0) {
|
||||
failf(data, "%s", Curl_strerror(conn,Curl_ourerrno()));
|
||||
failf(data, "getsockname(): %s", Curl_strerror(conn,Curl_ourerrno()));
|
||||
return CURLE_FTP_PORT_FAILED;
|
||||
}
|
||||
|
||||
|
|
@ -2151,7 +2151,7 @@ static CURLcode ftp_state_get_resp(struct connectdata *conn,
|
|||
state(conn, FTP_STOP); /* this phase is over */
|
||||
}
|
||||
else {
|
||||
failf(data, "%s", buf+4);
|
||||
failf(data, "RETR response: %03d", ftpcode);
|
||||
return CURLE_FTP_COULDNT_RETR_FILE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue