From a470e6a1af8fb7444f37ea9b6c247b135a5d0e89 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 11 Nov 2011 00:31:56 +0100 Subject: [PATCH] libxbps: xbps_repository_pool_sync: show proper error on dbg printf. --- lib/repository_pool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/repository_pool.c b/lib/repository_pool.c index 4cc57b37..5d5cbd35 100644 --- a/lib/repository_pool.c +++ b/lib/repository_pool.c @@ -251,7 +251,8 @@ xbps_repository_pool_sync(void) rv = xbps_repository_sync_pkg_index(repouri); if (rv == -1) { xbps_dbg_printf("[rpool] `%s' failed to fetch: %s\n", - repouri, xbps_fetch_error_string()); + repouri, fetchLastErrCode == 0 ? + strerror(errno) : xbps_fetch_error_string()); continue; } }