Box the large GeoError error variant

This commit is contained in:
Clément Renault
2025-04-01 11:26:17 +02:00
parent 4d90e3d2ec
commit 64477aac60
5 changed files with 45 additions and 24 deletions

View File

@ -115,7 +115,7 @@ pub fn enrich_documents_batch<R: Read + Seek>(
if let Some(geo_value) = geo_field_id.and_then(|fid| document.get(fid)) {
if let Err(user_error) = validate_geo_from_json(&document_id, geo_value)? {
return Ok(Err(UserError::from(user_error)));
return Ok(Err(UserError::from(Box::new(user_error))));
}
}