mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
re-enable the tests in the parser and start the creation of an error type
This commit is contained in:
parent
1327807caa
commit
76a2adb7c3
4 changed files with 86 additions and 36 deletions
|
@ -93,7 +93,7 @@ impl<'a> Filter<'a> {
|
|||
let condition = match FilterCondition::parse::<GreedyError<Span, ErrorKind>>(expression) {
|
||||
Ok(fc) => Ok(fc),
|
||||
Err(e) => Err(Error::UserError(UserError::InvalidFilter {
|
||||
input: convert_error(Span::new(expression), e).to_string(),
|
||||
input: convert_error(Span::new_extra(expression, expression), e).to_string(),
|
||||
})),
|
||||
}?;
|
||||
Ok(Self { condition })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue