mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-11 23:48:56 +01:00
feat(error): Update the error message when you have no version file
This commit is contained in:
parent
f9f075bca2
commit
629b897845
@ -1,6 +1,9 @@
|
|||||||
#[derive(thiserror::Error, Debug)]
|
#[derive(thiserror::Error, Debug)]
|
||||||
pub enum VersionFileError {
|
pub enum VersionFileError {
|
||||||
#[error("Version file is missing or the previous MeiliSearch engine version was below 0.24.0. Use a dump to update MeiliSearch.")]
|
#[error(
|
||||||
|
"MeilSearch (v{}) failed to infer the version of the database. Please consider using a dump to load your data.",
|
||||||
|
env!("CARGO_PKG_VERSION").to_string()
|
||||||
|
)]
|
||||||
MissingVersionFile,
|
MissingVersionFile,
|
||||||
#[error("Version file is corrupted and thus MeiliSearch is unable to determine the version of the database.")]
|
#[error("Version file is corrupted and thus MeiliSearch is unable to determine the version of the database.")]
|
||||||
MalformedVersionFile,
|
MalformedVersionFile,
|
||||||
|
Loading…
Reference in New Issue
Block a user