From 0216e517d07f6409534a222b69d550844aeeb4d8 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 14 Sep 2011 10:36:29 +0200 Subject: ftp.c: add a couple of failure messages --- lib/ftp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/ftp.c') diff --git a/lib/ftp.c b/lib/ftp.c index 07c506dda..87dcbf245 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -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); -- cgit v1.2.3