Mercurial > gftp.yaz
diff src/uicommon/gftpui.c @ 652:cb8ba8124e0e
2004-12-31 Brian Masney <masneyb@gftp.org>
* src/uicommon/gftpui.c (gftpui_common_transfer_files) - check the
return status of gftp_end_transfer() to see if there was an error
closing the remote file
author | masneyb |
---|---|
date | Fri, 31 Dec 2004 15:33:01 +0000 |
parents | 5f2808c65e46 |
children | 8990a8a26ccf |
line wrap: on
line diff
--- a/src/uicommon/gftpui.c Fri Dec 31 14:25:28 2004 +0000 +++ b/src/uicommon/gftpui.c Fri Dec 31 15:33:01 2004 +0000 @@ -1459,12 +1459,21 @@ break; } - gftp_end_transfer (tdata->toreq); - tdata->fromreq->logging_function (gftp_logging_misc, - tdata->fromreq, - _("Successfully transferred %s at %.2f KB/s\n"), - curfle->file, tdata->kbs); + if (gftp_end_transfer (tdata->toreq) == 0) + { + tdata->fromreq->logging_function (gftp_logging_misc, + tdata->fromreq, + _("Successfully transferred %s at %.2f KB/s\n"), + curfle->file, tdata->kbs); + } + else + { + tdata->fromreq->logging_function (gftp_logging_error, + tdata->fromreq, + _("There was an error transfering the file %s"), + curfle->file); + } } gftp_lookup_request_option (tdata->fromreq, "preserve_permissions",