panic on serde json

This commit is contained in:
Louis Dureuil
2025-01-29 10:13:02 +01:00
parent e0f446e4d3
commit cd58a71f57
16 changed files with 62 additions and 46 deletions

View File

@ -839,12 +839,14 @@ impl IndexScheduler {
for document in
serde_json::de::Deserializer::from_reader(content_file).into_iter()
{
let document = document.map_err(|e| {
Error::from_milli(
milli::InternalError::SerdeJson(e).into(),
None,
)
})?;
let document = document
.map_err(|e| {
Error::from_milli(
milli::InternalError::SerdeJson(e).into(),
None,
)
})
.unwrap();
dump_content_file.push_document(&document)?;
}