mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Rename FilterParsing into InvalidFilter
This commit is contained in:
parent
8cfe3e1ec0
commit
adf0c389c5
2 changed files with 9 additions and 9 deletions
|
@ -53,7 +53,7 @@ pub enum UserError {
|
|||
Csv(csv::Error),
|
||||
MaxDatabaseSizeReached,
|
||||
DocumentLimitReached,
|
||||
FilterParsing(pest::error::Error<ParserRule>),
|
||||
InvalidFilter(pest::error::Error<ParserRule>),
|
||||
InvalidCriterionName { name: String },
|
||||
InvalidDocumentId { document_id: Value },
|
||||
InvalidFilterAttribute(pest::error::Error<ParserRule>),
|
||||
|
@ -199,7 +199,7 @@ impl fmt::Display for UserError {
|
|||
Self::AttributeLimitReached => f.write_str("maximum number of attributes reached"),
|
||||
Self::Csv(error) => error.fmt(f),
|
||||
Self::DocumentLimitReached => f.write_str("maximum number of documents reached"),
|
||||
Self::FilterParsing(error) => error.fmt(f),
|
||||
Self::InvalidFilter(error) => error.fmt(f),
|
||||
Self::InvalidCriterionName { name } => write!(f, "invalid criterion {}", name),
|
||||
Self::InvalidDocumentId { document_id } => {
|
||||
let json = serde_json::to_string(document_id).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue