mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-23 13:24:27 +01:00
fix error on missing document id in document
This commit is contained in:
parent
3c51e9f5ed
commit
41707e3245
@ -124,7 +124,10 @@ impl From<BincodeError> for Error {
|
|||||||
|
|
||||||
impl From<SerializerError> for Error {
|
impl From<SerializerError> for Error {
|
||||||
fn from(error: SerializerError) -> Error {
|
fn from(error: SerializerError) -> Error {
|
||||||
Error::Serializer(error)
|
match error {
|
||||||
|
SerializerError::DocumentIdNotFound => Error::MissingDocumentId,
|
||||||
|
e => Error::Serializer(e),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user