mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-26 16:21:07 +00:00
delete the invalid criterion name error in favor of invalid ranking rule name
This commit is contained in:
@ -59,10 +59,10 @@ impl FromStr for Criterion {
|
||||
Err(UserError::InvalidRankingRuleName { name: text.to_string() })?
|
||||
}
|
||||
Err(UserError::InvalidAscDescSyntax { name }) => {
|
||||
Err(UserError::InvalidCriterionName { name }.into())
|
||||
Err(UserError::InvalidRankingRuleName { name }.into())
|
||||
}
|
||||
Err(error) => {
|
||||
Err(UserError::InvalidCriterionName { name: error.to_string() }.into())
|
||||
Err(UserError::InvalidRankingRuleName { name: error.to_string() }.into())
|
||||
}
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user