1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

dload: use better error message on exceeded file size

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Christian Hesse 2014-10-10 10:29:04 +02:00 committed by Allan McRae
parent 9d96bed9d6
commit 11dff8a50e

View File

@ -495,11 +495,9 @@ static int curl_download_internal(struct dload_payload *payload,
if(dload_interrupted == ABORT_OVER_MAXFILESIZE) { if(dload_interrupted == ABORT_OVER_MAXFILESIZE) {
payload->curlerr = CURLE_FILESIZE_EXCEEDED; payload->curlerr = CURLE_FILESIZE_EXCEEDED;
handle->pm_errno = ALPM_ERR_LIBCURL; handle->pm_errno = ALPM_ERR_LIBCURL;
/* use the 'size exceeded' message from libcurl */
_alpm_log(handle, ALPM_LOG_ERROR, _alpm_log(handle, ALPM_LOG_ERROR,
_("failed retrieving file '%s' from %s : %s\n"), _("failed retrieving file '%s' from %s : expected download size exceeded\n"),
payload->remote_name, hostname, payload->remote_name, hostname);
curl_easy_strerror(CURLE_FILESIZE_EXCEEDED));
} }
goto cleanup; goto cleanup;
default: default: