From b2a626cb29d4eb583353d8b6ba569e31e76619e5 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Thu, 25 Oct 2018 13:46:59 +0000 Subject: [PATCH] print reason for output error on extract --- lib/zpm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.40.0