Update src/libstore/local-store.cc

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
This commit is contained in:
Ben Radford
2023-06-15 13:32:35 +01:00
committed by GitHub
parent 78e2f931d0
commit 984b01924a

View File

@@ -496,7 +496,7 @@ int LocalStore::getSchema()
void LocalStore::openDB(State & state, bool create)
{
if (create && readOnly) {
throw Error("unable to create database while in read-only mode");
throw Error("cannot create database while in read-only mode");
}
if (access(dbDir.c_str(), R_OK | (readOnly ? 0 : W_OK)))