From 3580b2d803fcac029ff57f08a2108610335357b0 Mon Sep 17 00:00:00 2001 From: Vishnu Ganesan Date: Tue, 28 Sep 2021 19:30:23 +0530 Subject: [PATCH 1/2] Fixes #365 --- milli/src/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/milli/src/error.rs b/milli/src/error.rs index 723d5c4c2..6bd8604fc 100644 --- a/milli/src/error.rs +++ b/milli/src/error.rs @@ -247,8 +247,8 @@ only composed of alphanumeric characters (a-z A-Z 0-9), hyphens (-) and undersco ) } Self::SortRankingRuleMissing => f.write_str( - "The sort ranking rule must be specified in the \ - ranking rules settings to use the sort parameter at search time", + "You must specify where \"sort\" is listed in the \ +rankingRules settings to use the sort parameter at search time", ), Self::MissingDocumentId { document } => { let json = serde_json::to_string(document).unwrap(); From 785c1372f28f6db7685f5f5cb6bc62bc4e9f2894 Mon Sep 17 00:00:00 2001 From: Vishnu Gt Date: Tue, 28 Sep 2021 20:11:32 +0530 Subject: [PATCH 2/2] Change "settings" to "setting" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Clément Renault --- milli/src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/milli/src/error.rs b/milli/src/error.rs index 6bd8604fc..1f1cc5264 100644 --- a/milli/src/error.rs +++ b/milli/src/error.rs @@ -248,7 +248,7 @@ only composed of alphanumeric characters (a-z A-Z 0-9), hyphens (-) and undersco } Self::SortRankingRuleMissing => f.write_str( "You must specify where \"sort\" is listed in the \ -rankingRules settings to use the sort parameter at search time", +rankingRules setting to use the sort parameter at search time", ), Self::MissingDocumentId { document } => { let json = serde_json::to_string(document).unwrap();