Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2014-10-10 10:29:04 +0200
committerAllan McRae <allan@archlinux.org>2014-10-16 23:19:52 +1000
commit11dff8a50e8b1801a97a4dc08b567ae94d8060c2 (patch)
tree61d0330594596612bc2a598424a17086af515ca2 /lib
parent9d96bed9d6b57c1f3cfb4220e80f6dd473d86683 (diff)
dload: use better error message on exceeded file size
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/dload.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index 1f8070c2..4fc2dcbb 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -495,11 +495,9 @@ static int curl_download_internal(struct dload_payload *payload,
if(dload_interrupted == ABORT_OVER_MAXFILESIZE) {
payload->curlerr = CURLE_FILESIZE_EXCEEDED;
handle->pm_errno = ALPM_ERR_LIBCURL;
- /* use the 'size exceeded' message from libcurl */
_alpm_log(handle, ALPM_LOG_ERROR,
- _("failed retrieving file '%s' from %s : %s\n"),
- payload->remote_name, hostname,
- curl_easy_strerror(CURLE_FILESIZE_EXCEEDED));
+ _("failed retrieving file '%s' from %s : expected download size exceeded\n"),
+ payload->remote_name, hostname);
}
goto cleanup;
default: