print whole query on syntax error

This commit is contained in:
Pascal Seitz
2022-04-27 12:48:30 +08:00
parent c305d3a2a2
commit b5b16948b0

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}")]