diff options
author | Yang Tse <yangsita@gmail.com> | 2011-09-14 10:36:29 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-09-14 11:30:22 +0200 |
commit | 0216e517d07f6409534a222b69d550844aeeb4d8 (patch) | |
tree | be5f9bd5be34a471666d58ce7c99d7e1af677761 | |
parent | aff70e2e9534eecb9e756d2104efa52e5d8b0462 (diff) |
ftp.c: add a couple of failure messages
-rw-r--r-- | lib/ftp.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1001,6 +1001,8 @@ static CURLcode ftp_state_use_port(struct connectdata *conn, sa->sa_family == AF_INET?1:2, myhost, port); if(result) { + failf(data, "Failure sending EPRT command: %s", + curl_easy_strerror(result)); Curl_closesocket(conn, portsock); /* don't retry using PORT */ ftpc->count1 = PORT; @@ -1028,6 +1030,8 @@ static CURLcode ftp_state_use_port(struct connectdata *conn, result = Curl_pp_sendf(&ftpc->pp, "%s %s", mode[fcmd], tmp); if(result) { + failf(data, "Failure sending PORT command: %s", + curl_easy_strerror(result)); Curl_closesocket(conn, portsock); /* bail out */ state(conn, FTP_STOP); |