From 3e9834abffacac5b87675bb228716bf41ef45114 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Mon, 26 Dec 2022 17:34:04 +0100 Subject: [PATCH] Change error message when the db version is incompatible with engine version. --- meilisearch-types/src/versioning.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meilisearch-types/src/versioning.rs b/meilisearch-types/src/versioning.rs index f0979f669..f1c477834 100644 --- a/meilisearch-types/src/versioning.rs +++ b/meilisearch-types/src/versioning.rs @@ -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 },