mu-store: improve database schema error
Tell user they should mu-init
This commit is contained in:
@ -292,6 +292,8 @@ Store::Store (const std::string& path, bool readonly):
|
|||||||
if (metadata().schema_version != ExpectedSchemaVersion)
|
if (metadata().schema_version != ExpectedSchemaVersion)
|
||||||
throw Mu::Error(Error::Code::SchemaMismatch,
|
throw Mu::Error(Error::Code::SchemaMismatch,
|
||||||
"expected schema-version %s, but got %s",
|
"expected schema-version %s, but got %s",
|
||||||
|
"expected schema-version %s, but got %s; "
|
||||||
|
"please use 'mu init'",
|
||||||
ExpectedSchemaVersion,
|
ExpectedSchemaVersion,
|
||||||
metadata().schema_version.c_str());
|
metadata().schema_version.c_str());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user