]> pd.if.org Git - zpackage/commitdiff
more verbose missing hash error in zpm_extract
authorNathan Wagner <nw@hydaspes.if.org>
Sun, 2 Apr 2017 22:38:22 +0000 (17:38 -0500)
committerNathan Wagner <nw@hydaspes.if.org>
Sun, 2 Apr 2017 22:38:22 +0000 (17:38 -0500)
lib/zpm.c

index 8e0687542c290f49dbdf0298045a0bb67a158cd1..72b5777f1266415f71b79723d791e30a6ad226b7 100644 (file)
--- a/lib/zpm.c
+++ b/lib/zpm.c
@@ -425,7 +425,7 @@ int zpm_extract(struct zpm *pkg, char *hash, char *path, int mode) {
                /* didn't find a row */
                sqlite3_finalize(ifile);
                sqlite3_close(db);
-               fprintf(stderr, "no such hash\n");
+               fprintf(stderr, "no such hash: %s\n", hash);
                return 0;
        }
        /* either way we're done with this now */