From: Nathan Wagner Date: Thu, 25 Oct 2018 13:46:59 +0000 (+0000) Subject: print reason for output error on extract X-Git-Tag: v0.2.16~59 X-Git-Url: https://pd.if.org/git/?p=zpackage;a=commitdiff_plain;h=b2a626cb29d4eb583353d8b6ba569e31e76619e5 print reason for output error on extract --- 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;