Introduce a new invalid_facet_search_facet_name error code

This commit is contained in:
Kerollmops 2023-06-07 11:04:53 +02:00 committed by Louis Dureuil
parent e9a3029c30
commit 41760a9306
No known key found for this signature in database
3 changed files with 6 additions and 3 deletions

View file

@ -137,7 +137,7 @@ only composed of alphanumeric characters (a-z A-Z 0-9), hyphens (-) and undersco
),
}
)]
InvalidSearchFacet { field: String, valid_fields: BTreeSet<String> },
InvalidFacetSearchFacetName { field: String, valid_fields: BTreeSet<String> },
#[error("Attribute `{}` is not searchable. Available searchable attributes are: `{}{}`.",
.field,
.valid_fields.iter().map(AsRef::as_ref).collect::<Vec<&str>>().join(", "),