Fixed "all" error message #1845

This commit is contained in:
Mike Farah 2023-12-13 11:02:22 +11:00
parent eb4278784a
commit dea8f95670
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ func allOperator(d *dataTreeNavigator, context Context, expressionNode *Expressi
for el := context.MatchingNodes.Front(); el != nil; el = el.Next() {
candidate := el.Value.(*CandidateNode)
if candidate.Kind != SequenceNode {
return Context{}, fmt.Errorf("any only supports arrays, was %v", candidate.Tag)
return Context{}, fmt.Errorf("all only supports arrays, was %v", candidate.Tag)
}
booleanResult, err := findBoolean(false, d, context, expressionNode.RHS, candidate)
if err != nil {