[pacman-dev] [PATCH 1/1] dload: use better error message on exceeded file size

Christian Hesse list at eworm.de
Fri Oct 10 08:12:16 UTC 2014


From: Christian Hesse <mail at eworm.de>

---
 lib/libalpm/dload.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index c5a56b5..42a71d9 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -493,11 +493,10 @@ 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));
+						_("expected download size exceeded"));
 			}
 			goto cleanup;
 		default:
-- 
2.1.2


More information about the pacman-dev mailing list