mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 00:31:02 +00:00
WIP: remove '_nom' suffix/redundant error enum/...
This commit is contained in:
@ -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"),
|
||||
|
Reference in New Issue
Block a user