From 3139f822da988637f780ed7e53e0dac0d55c701a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 15 Jan 2013 13:14:30 +0100 Subject: [PATCH] lib/pkgdb.c: print to stderr a meaningful msg on error. --- lib/pkgdb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pkgdb.c b/lib/pkgdb.c index 92b78967..da89a2c9 100644 --- a/lib/pkgdb.c +++ b/lib/pkgdb.c @@ -109,6 +109,8 @@ xbps_pkgdb_update(struct xbps_handle *xhp, bool flush) if ((xhp->pkgdb = prop_array_internalize_from_zfile(plist)) == NULL) { if (errno == ENOENT) xhp->pkgdb = prop_array_create(); + else + xbps_error_printf("cannot access to pkgdb: %s\n", strerror(errno)); cached_rv = rv = errno; }