diff options
author | Chris Lumens <clumens@redhat.com> | 2005-01-12 21:39:14 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2005-01-12 21:39:14 +0000 |
commit | 0281e868090822dd6fbbb19ab21ee9277feabf0d (patch) | |
tree | d8647d7897ba6b1d9e3011c336857568accd7976 /loader2/urls.c | |
parent | 0d202f91c2048bec9e1c193af558da4b9ec8408b (diff) | |
download | anaconda-0281e868090822dd6fbbb19ab21ee9277feabf0d.tar.gz anaconda-0281e868090822dd6fbbb19ab21ee9277feabf0d.tar.xz anaconda-0281e868090822dd6fbbb19ab21ee9277feabf0d.zip |
When unable to connect to an HTTP or FTP server for some reason, display an
error message instead of flashing back to the input screen. (#144546).
Diffstat (limited to 'loader2/urls.c')
-rw-r--r-- | loader2/urls.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/loader2/urls.c b/loader2/urls.c index f07806bca..be39c797f 100644 --- a/loader2/urls.c +++ b/loader2/urls.c @@ -171,7 +171,7 @@ int urlinstStartTransfer(struct iurlinfo * ui, char * filename, if (!silentErrors) newtWinMessage(_("Error"), _("OK"), _("Failed to log into %s: %s"), ui->address, - ftpStrerror(ui->ftpPort)); + ftpStrerror(ui->ftpPort, ui->protocol)); return -2; } @@ -180,7 +180,8 @@ int urlinstStartTransfer(struct iurlinfo * ui, char * filename, close(ui->ftpPort); if (!silentErrors) newtWinMessage(_("Error"), _("OK"), - _("Failed to retrieve %s: %s"), buf, ftpStrerror(fd)); + _("Failed to retrieve %s: %s"), buf, + ftpStrerror(fd, ui->protocol)); return -1; } } else { @@ -188,7 +189,8 @@ int urlinstStartTransfer(struct iurlinfo * ui, char * filename, if (fd < 0) { if (!silentErrors) newtWinMessage(_("Error"), _("OK"), - _("Failed to retrieve %s: %s"), buf, ftpStrerror(fd)); + _("Failed to retrieve %s: %s"), buf, + ftpStrerror(fd, ui->protocol)); return -1; } } |