summaryrefslogtreecommitdiffstats
path: root/loader2/urls.c
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-01-12 21:39:14 +0000
committerChris Lumens <clumens@redhat.com>2005-01-12 21:39:14 +0000
commit0281e868090822dd6fbbb19ab21ee9277feabf0d (patch)
treed8647d7897ba6b1d9e3011c336857568accd7976 /loader2/urls.c
parent0d202f91c2048bec9e1c193af558da4b9ec8408b (diff)
downloadanaconda-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.c8
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;
}
}