mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 05:38:04 +00:00
Fixed "all" error message #1845
This commit is contained in:
parent
eb4278784a
commit
dea8f95670
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user