]> git.ipfire.org Git - pakfire.git/commitdiff
archive: Show better error message if an mtree could not be read
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 Oct 2021 12:21:12 +0000 (12:21 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 Oct 2021 12:21:12 +0000 (12:21 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/archive.c

index 27ed9f1cca66d272effc3c3c743c0c39712d8eed..81277229a358d00f006345584a8dd3db0e46aa00 100644 (file)
@@ -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;
        }