Fix error message
This commit is contained in:
parent
65bb2c9d84
commit
96adc4bf77
@ -26,7 +26,7 @@ impl AbstractTree for Logic {
|
|||||||
"<=" => LogicOperator::LessOrEqaul,
|
"<=" => LogicOperator::LessOrEqaul,
|
||||||
_ => {
|
_ => {
|
||||||
return Err(Error::UnexpectedSyntaxNode {
|
return Err(Error::UnexpectedSyntaxNode {
|
||||||
expected: "==, && or ||",
|
expected: "==, && ||, >, <, >= or <=",
|
||||||
actual: operator_node.kind(),
|
actual: operator_node.kind(),
|
||||||
location: operator_node.start_position(),
|
location: operator_node.start_position(),
|
||||||
relevant_source: source[operator_node.byte_range()].to_string(),
|
relevant_source: source[operator_node.byte_range()].to_string(),
|
||||||
|
Loading…
Reference in New Issue
Block a user