This commit is contained in:
Tamo
2025-06-23 23:39:32 +02:00
parent bea11a1353
commit 4a2b8be428
2 changed files with 13 additions and 13 deletions

View File

@@ -411,19 +411,19 @@ impl From<arroy::Error> for Error {
arroy::Error::Heed(heed) => heed.into(), arroy::Error::Heed(heed) => heed.into(),
arroy::Error::Io(io) => io.into(), arroy::Error::Io(io) => io.into(),
arroy::Error::InvalidVecDimension { expected, received } => { arroy::Error::InvalidVecDimension { expected, received } => {
Error::UserError(UserError::InvalidVectorDimensions { expected, found: received }) Error::UserError(UserError::InvalidVectorDimensions { expected, found: received })
} }
arroy::Error::BuildCancelled => Error::InternalError(InternalError::AbortedIndexation), arroy::Error::BuildCancelled => Error::InternalError(InternalError::AbortedIndexation),
arroy::Error::DatabaseFull arroy::Error::DatabaseFull
| arroy::Error::InvalidItemAppend | arroy::Error::InvalidItemAppend
| arroy::Error::UnmatchingDistance { .. } | arroy::Error::UnmatchingDistance { .. }
| arroy::Error::NeedBuild(_) | arroy::Error::NeedBuild(_)
| arroy::Error::MissingKey { .. } | arroy::Error::MissingKey { .. }
| arroy::Error::MissingMetadata(_) | arroy::Error::MissingMetadata(_)
| arroy::Error::CannotDecodeKeyMode { .. } | arroy::Error::CannotDecodeKeyMode { .. }
| arroy::Error::UnknownVersion { .. } => { | arroy::Error::UnknownVersion { .. } => {
Error::InternalError(InternalError::ArroyError(value)) Error::InternalError(InternalError::ArroyError(value))
} }
} }
} }
} }

View File

@@ -282,8 +282,8 @@ impl Step for arroy::MainStep {
match self { match self {
arroy::MainStep::PreProcessingTheItems => "pre processing the items", arroy::MainStep::PreProcessingTheItems => "pre processing the items",
arroy::MainStep::WritingTheDescendantsAndMetadata => { arroy::MainStep::WritingTheDescendantsAndMetadata => {
"writing the descendants and metadata" "writing the descendants and metadata"
} }
arroy::MainStep::RetrieveTheUpdatedItems => "retrieve the updated items", arroy::MainStep::RetrieveTheUpdatedItems => "retrieve the updated items",
arroy::MainStep::WriteTheMetadata => "write the metadata", arroy::MainStep::WriteTheMetadata => "write the metadata",
arroy::MainStep::RetrievingTheItemsIds => "retrieving the items ids", arroy::MainStep::RetrievingTheItemsIds => "retrieving the items ids",