Skip to content

Commit

Permalink
Fix description for QueryParserError::ExpectedFloat
Browse files Browse the repository at this point in the history
description appears to be a copy-pasta error. Changed to a more reasonable message, modelled on `QueryParserError::ExpectedInt`
  • Loading branch information
PollRobots committed Sep 26, 2024
1 parent 2f5a269 commit dd44d3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/query/query_parser/query_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ pub enum QueryParserError {
/// base64.
#[error("Expected base64: '{0:?}'")]
ExpectedBase64(#[from] base64::DecodeError),
/// The query contains a term for a `f64`-field, but the value
/// is not a f64.
#[error("Invalid query: Only excluding terms given")]
/// The query contains a term for an `f64`-field, but the value is not a
/// valid f64.
#[error("Expected a valid float: '{0:?}'")]
ExpectedFloat(#[from] ParseFloatError),
/// The query contains a term for a bool field, but the value
/// is not a bool.
Expand Down

0 comments on commit dd44d3c

Please sign in to comment.