mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
fix bugs after rebase
This commit is contained in:
parent
d3654906bf
commit
e70ac35e02
4 changed files with 5 additions and 6 deletions
|
@ -290,7 +290,7 @@ and can not be more than 511 bytes.", .document_id.to_string()
|
|||
DocumentEmbeddingError(String),
|
||||
#[error("Upgrade could not be processed because v{0}.{1}.{2} of the database is too old. Please re-open the v{0}.{1}.{2} and use a dump to upgrade your version. The oldest version meilisearch can upgrade from is v1.12.0.")]
|
||||
TooOldForUpgrade(u32, u32, u32),
|
||||
#[error("Upgrade could not be processed because the database version (v{0}.{1}.{2}) is newer than the targeted version (v{}.{}.{})", VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH)]
|
||||
#[error("Upgrade could not be processed because the database version (v{0}.{1}.{2}) is newer than the targeted version (v{VERSION_MAJOR}.{VERSION_MINOR}.{VERSION_PATCH})")]
|
||||
CannotDowngrade(u32, u32, u32),
|
||||
#[error("Cannot upgrade to unknown version v{0}.{1}.{2}.")]
|
||||
CannotUpgradeToUnknownVersion(u32, u32, u32),
|
||||
|
|
|
@ -8,8 +8,7 @@ const VERSION_SIZE: usize = std::mem::size_of::<u32>() * 3;
|
|||
|
||||
#[derive(thiserror::Error, Debug)]
|
||||
#[error(
|
||||
"Could not decode the version: Expected {} bytes but instead received {0} bytes",
|
||||
VERSION_SIZE
|
||||
"Could not decode the version: Expected {VERSION_SIZE} bytes but instead received {0} bytes"
|
||||
)]
|
||||
pub struct DecodeVersionError(usize);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue