Fixes error message when lat/lng are unparseable

This commit is contained in:
Philipp Ahlner 2023-01-18 13:24:46 +01:00
parent 497187083b
commit a2cd7214f0
No known key found for this signature in database
GPG key ID: EB28F19292E901D2
2 changed files with 10 additions and 5 deletions

View file

@ -2321,9 +2321,7 @@ pub(crate) mod tests {
.unwrap_err();
assert!(matches!(
err1,
Error::UserError(UserError::InvalidGeoField(
GeoError::BadLatitudeAndLongitude { .. }
))
Error::UserError(UserError::InvalidGeoField(GeoError::BadLatitudeAndLongitude { .. }))
));
db_snap!(index, geo_faceted_documents_ids); // ensure that no more document was inserted