mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
WIP: remove '_nom' suffix/redundant error enum/...
This commit is contained in:
parent
2c65781d91
commit
5de5dd80a3
4 changed files with 11 additions and 55 deletions
|
@ -59,9 +59,7 @@ pub enum UserError {
|
|||
InvalidDocumentId { document_id: Value },
|
||||
InvalidFacetsDistribution { invalid_facets_name: HashSet<String> },
|
||||
InvalidGeoField { document_id: Value, object: Value },
|
||||
InvalidFilterAttributeNom,
|
||||
InvalidFilterValue,
|
||||
InvalidFilterNom { input: String },
|
||||
InvalidFilter { input: String },
|
||||
InvalidSortName { name: String },
|
||||
InvalidSortableAttribute { field: String, valid_fields: HashSet<String> },
|
||||
SortRankingRuleMissing,
|
||||
|
@ -209,10 +207,7 @@ impl StdError for InternalError {}
|
|||
impl fmt::Display for UserError {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
match self {
|
||||
//TODO
|
||||
Self::InvalidFilterAttributeNom => write!(f, "parser error "),
|
||||
Self::InvalidFilterValue => write!(f, "parser error "),
|
||||
Self::InvalidFilterNom { input } => write!(f, "parser error {}", input),
|
||||
Self::InvalidFilter { input } => write!(f, "parser error {}", input),
|
||||
Self::AttributeLimitReached => f.write_str("maximum number of attributes reached"),
|
||||
Self::CriterionError(error) => write!(f, "{}", error),
|
||||
Self::DocumentLimitReached => f.write_str("maximum number of documents reached"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue