lib/pkgdb.c: print to stderr a meaningful msg on error.
This commit is contained in:
parent
71430b1566
commit
3139f822da
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user