Merge pull request #1349 from quickwit-oss/fix_error_message

print whole query on syntax error
This commit is contained in:
PSeitz
2022-04-28 09:31:45 +02:00
committed by GitHub

View File

@@ -24,7 +24,7 @@ use crate::{DateTime, Score};
#[derive(Debug, PartialEq, Eq, Error)]
pub enum QueryParserError {
/// Error in the query syntax
#[error("Syntax Error")]
#[error("Syntax Error: {0}")]
SyntaxError(String),
/// This query is unsupported.
#[error("Unsupported query: {0}")]