From 754f48a4fba0d34afaf30b2e2e04f71a289c83a2 Mon Sep 17 00:00:00 2001 From: Matthias Wright Date: Fri, 20 May 2022 21:25:43 +0200 Subject: [PATCH] Improves ranking rules error message --- milli/src/criterion.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/milli/src/criterion.rs b/milli/src/criterion.rs index a46a137ad..c02cd2525 100644 --- a/milli/src/criterion.rs +++ b/milli/src/criterion.rs @@ -8,7 +8,7 @@ use crate::{AscDesc, Member}; #[derive(Error, Debug)] pub enum CriterionError { - #[error("`{name}` ranking rule is invalid. Valid ranking rules are Words, Typo, Sort, Proximity, Attribute, Exactness and custom ranking rules.")] + #[error("`{name}` ranking rule is invalid. Valid ranking rules are words, typo, sort, proximity, attribute, exactness and custom ranking rules.")] InvalidName { name: String }, #[error("`{name}` is a reserved keyword and thus can't be used as a ranking rule")] ReservedName { name: String },