mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-31 07:56:28 +00:00 
			
		
		
		
	Improves ranking rules error message
This commit is contained in:
		| @@ -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 }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user