fix error on missing document id in document

This commit is contained in:
mpostma 2020-06-22 18:54:32 +02:00
parent 3c51e9f5ed
commit 41707e3245

View File

@ -124,7 +124,10 @@ impl From<BincodeError> for Error {
impl From<SerializerError> for Error {
fn from(error: SerializerError) -> Error {
Error::Serializer(error)
match error {
SerializerError::DocumentIdNotFound => Error::MissingDocumentId,
e => Error::Serializer(e),
}
}
}