Mercurial > gftp.yaz
comparison src/uicommon/gftpui.c @ 677:8990a8a26ccf
2005-1-24 Brian Masney <masneyb@gftp.org>
* lib/protocols.c lib/rfc959.c src/gtk/dnd.c src/gtk/gftp-gtk.c
src/gtk/gtkui.c src/gtk/menu-items.c src/gtk/misc-gtk.c
src/gtk/transfer.c src/gtk/view-dialog.c src/uicommon/gftpui.c - make
sure the logging level gftp_logging_error is used for all error messages
author | masneyb |
---|---|
date | Tue, 25 Jan 2005 02:34:19 +0000 |
parents | cb8ba8124e0e |
children | 1ad4eb5c29de |
comparison
equal
deleted
inserted
replaced
676:72a6de68d9c8 | 677:8990a8a26ccf |
---|---|
85 | 85 |
86 if (success == GFTP_EFATAL || success == 0 || cdata->retries == 0) | 86 if (success == GFTP_EFATAL || success == 0 || cdata->retries == 0) |
87 break; | 87 break; |
88 | 88 |
89 cdata->retries--; | 89 cdata->retries--; |
90 cdata->request->logging_function (gftp_logging_misc, cdata->request, | 90 cdata->request->logging_function (gftp_logging_error, cdata->request, |
91 _("Waiting %d seconds until trying to connect again\n"), | 91 _("Waiting %d seconds until trying to connect again\n"), |
92 sleep_time); | 92 sleep_time); |
93 alarm (sleep_time); | 93 alarm (sleep_time); |
94 pause (); | 94 pause (); |
95 } | 95 } |
1368 } | 1368 } |
1369 | 1369 |
1370 if (!GFTP_IS_CONNECTED (tdata->fromreq) || | 1370 if (!GFTP_IS_CONNECTED (tdata->fromreq) || |
1371 !GFTP_IS_CONNECTED (tdata->toreq)) | 1371 !GFTP_IS_CONNECTED (tdata->toreq)) |
1372 { | 1372 { |
1373 tdata->fromreq->logging_function (gftp_logging_misc, | 1373 tdata->fromreq->logging_function (gftp_logging_error, |
1374 tdata->fromreq, | 1374 tdata->fromreq, |
1375 _("Error: Remote site disconnected after trying to transfer file\n")); | 1375 _("Error: Remote site disconnected after trying to transfer file\n")); |
1376 } | 1376 } |
1377 else if (tdata->tot_file_trans < 0) | 1377 else if (tdata->tot_file_trans < 0) |
1378 { | 1378 { |
1436 if (gftp_abort_transfer (tdata->toreq) != 0) | 1436 if (gftp_abort_transfer (tdata->toreq) != 0) |
1437 gftp_disconnect (tdata->toreq); | 1437 gftp_disconnect (tdata->toreq); |
1438 } | 1438 } |
1439 else if (num_read < 0) | 1439 else if (num_read < 0) |
1440 { | 1440 { |
1441 tdata->fromreq->logging_function (gftp_logging_misc, | 1441 tdata->fromreq->logging_function (gftp_logging_error, |
1442 tdata->fromreq, | 1442 tdata->fromreq, |
1443 _("Could not download %s from %s\n"), | 1443 _("Could not download %s from %s\n"), |
1444 curfle->file, | 1444 curfle->file, |
1445 tdata->fromreq->hostname); | 1445 tdata->fromreq->hostname); |
1446 | 1446 |