X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=lib%2Fzpm.c;h=9bd973246b9f0f01e2594e211e9d8bc1af9e90d8;hb=b2a626cb29d4eb583353d8b6ba569e31e76619e5;hp=87ffbbb3ebde53cf464a48fe5a9972883b8a1203;hpb=a40c286cff106b387f55763d648f5ebd94af045d;p=zpackage diff --git a/lib/zpm.c b/lib/zpm.c index 87ffbbb..9bd9732 100644 --- a/lib/zpm.c +++ b/lib/zpm.c @@ -512,7 +512,8 @@ int zpm_extract(struct zpm *pkg, char *hash, char *path, int mode) { out = stdout; } if (!out) { - fprintf(stderr, "can't open output file %s\n", path); + fprintf(stderr, "can't open output file %s: %s\n", path, + strerror(errno)); sqlite3_finalize(ifile); sqlite3_close(db); return 0;