From: Michael Tremer Date: Tue, 5 Oct 2021 12:21:12 +0000 (+0000) Subject: archive: Show better error message if an mtree could not be read X-Git-Tag: 0.9.28~908 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbc713f900fc48c300951933f86169e616163240;p=pakfire.git archive: Show better error message if an mtree could not be read Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/archive.c b/src/libpakfire/archive.c index 27ed9f1cc..81277229a 100644 --- a/src/libpakfire/archive.c +++ b/src/libpakfire/archive.c @@ -950,8 +950,8 @@ static int pakfire_archive_load_filelist_mtree(struct pakfire_archive* archive) // Try opening the mtree r = archive_read_open2(mtree, a, NULL, pakfire_archive_read_callback, NULL, NULL); if (r) { - ERROR(archive->pakfire, "Could not open mtree: %s\n", - archive_error_string(mtree)); + ERROR(archive->pakfire, "Could not open filelist mtree in %s: %s\n", + archive->path, archive_error_string(mtree)); goto ERROR; } @@ -1074,8 +1074,8 @@ static int pakfire_archive_load_checksums_mtree(struct pakfire_archive* archive) // Try opening the mtree r = archive_read_open2(mtree, a, NULL, pakfire_archive_read_callback, NULL, NULL); if (r) { - ERROR(archive->pakfire, "Could not open mtree: %s\n", - archive_error_string(mtree)); + ERROR(archive->pakfire, "Could not open checksum mtree in %s: %s\n", + archive->path, archive_error_string(mtree)); goto ERROR; }