Change error message when the db version is incompatible with engine version.

This commit is contained in:
Louis Dureuil 2022-12-26 17:34:04 +01:00
parent 9925309492
commit 3e9834abff
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,8 @@ pub enum VersionFileError {
#[error("Version file is corrupted and thus Meilisearch is unable to determine the version of the database.")]
MalformedVersionFile,
#[error(
"Expected Meilisearch engine version: {major}.{minor}.{patch}, current engine version: {}.
To update Meilisearch please follow our guide on https://docs.meilisearch.com/learn/advanced/updating.html.",
"Your database version ({major}.{minor}.{patch}) is incompatible with your current engine version ({}).\n\
To migrate data between Meilisearch versions, please follow our guide on https://docs.meilisearch.com/learn/advanced/updating.html.",
env!("CARGO_PKG_VERSION").to_string()
)]
VersionMismatch { major: String, minor: String, patch: String },