summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2021-07-31 01:47:21 +0300
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2021-07-31 01:47:21 +0300
commitfd9cc6bcc4c98b211132374f6a4b0f1073793f18 (patch)
tree92d05e8035b6d8deb19e8d03db7ba435fbcc3ca8
parent34fae2c07256b5c8daeff23ebfdbc18d021c5491 (diff)
mu-store: improve database schema error
Tell user they should mu-init
-rw-r--r--lib/mu-store.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mu-store.cc b/lib/mu-store.cc
index 07c18f8..34b22b9 100644
--- a/lib/mu-store.cc
+++ b/lib/mu-store.cc
@@ -292,6 +292,8 @@ Store::Store (const std::string& path, bool readonly):
if (metadata().schema_version != ExpectedSchemaVersion)
throw Mu::Error(Error::Code::SchemaMismatch,
"expected schema-version %s, but got %s",
+ "expected schema-version %s, but got %s; "
+ "please use 'mu init'",
ExpectedSchemaVersion,
metadata().schema_version.c_str());
}