From 2719f636424093e37bdab8508678b9bf25e9ed85 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 20 Jun 2011 23:16:58 +0200 Subject: [PATCH] xbps-repo: improve error string when xbps_fetch_file() errors out. --- bin/xbps-repo/repository.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/xbps-repo/repository.c b/bin/xbps-repo/repository.c index f6e14b1e..76e65247 100644 --- a/bin/xbps-repo/repository.c +++ b/bin/xbps-repo/repository.c @@ -151,8 +151,8 @@ repo_sync_pkg_index_cb(struct repository_pool_index *rpi, void *arg, bool *done) printf("Synchronizing package index for `%s' ...\n", rpi->rpi_uri); rv = xbps_repository_sync_pkg_index(rpi->rpi_uri); if (rv == -1) { - xbps_error_printf("xbps-repo: failed to sync `%s': %s\n", - rpi->rpi_uri, xbps_fetch_error_string()); + xbps_error_printf("xbps-repo: failed to sync `%s': (%s %s)\n", + rpi->rpi_uri, strerror(rv), xbps_fetch_error_string()); return rv; } else if (rv == 0) { printf("Package index file is already up to date.\n");