Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
DB: loudly complain if the DB cannot be opened
Baptiste Daroussin committed 22 days ago
commit 63c7804a77d87697cdbc6065608fa3a63944ae91
parent fcfe2f6
1 file changed +4 -1
modified libpkg/pkgdb.c
@@ -760,8 +760,11 @@ out:
			return (EPKG_ENODB);
		else if (errno == EACCES || errno == EROFS)
			return (EPKG_ENOACCESS);
-
		else
+
		else {
+
			pkg_emit_errno("Cannot access database",
+
			    dbpath);
			return (EPKG_FATAL);
+
		}
	}

	return (EPKG_OK);