Fix some typos in error messages

This commit is contained in:
Clément Renault 2021-02-01 18:10:57 +01:00
parent f5f4438b43
commit 14ae01a6c9
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -161,10 +161,10 @@ impl FacetCondition {
) -> anyhow::Result<FacetCondition> ) -> anyhow::Result<FacetCondition>
{ {
let fid = fields_ids_map.id(key).with_context(|| { let fid = fields_ids_map.id(key).with_context(|| {
format!("{:?} must isn't part of the fields ids map", key) format!("{:?} isn't present in the fields ids map", key)
})?; })?;
let ftype = faceted_fields.get(key).copied().with_context(|| { let ftype = faceted_fields.get(key).copied().with_context(|| {
format!("{:?} must isn't a faceted field", key) format!("{:?} isn't a faceted field", key)
})?; })?;
let (neg, value) = match value.trim().strip_prefix('-') { let (neg, value) = match value.trim().strip_prefix('-') {
Some(value) => (true, value.trim()), Some(value) => (true, value.trim()),