From fd9cc6bcc4c98b211132374f6a4b0f1073793f18 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sat, 31 Jul 2021 01:47:21 +0300 Subject: [PATCH] mu-store: improve database schema error Tell user they should mu-init --- lib/mu-store.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/mu-store.cc b/lib/mu-store.cc index 07c18f80..34b22b93 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()); }