mu-store: improve database schema error

Tell user they should mu-init
This commit is contained in:
Dirk-Jan C. Binnema 2021-07-31 01:47:21 +03:00
parent 34fae2c072
commit fd9cc6bcc4
1 changed files with 2 additions and 0 deletions

View File

@ -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());
}