Fixed flatten error message

This commit is contained in:
Mike Farah 2021-10-26 15:43:43 +11:00
parent 80084e89cc
commit d508ac3fa4

View File

@ -42,7 +42,7 @@ func flattenOp(d *dataTreeNavigator, context Context, expressionNode *Expression
candidate := el.Value.(*CandidateNode)
candidateNode := unwrapDoc(candidate.Node)
if candidateNode.Kind != yaml.SequenceNode {
return Context{}, fmt.Errorf("Only arrays are supported for group by")
return Context{}, fmt.Errorf("Only arrays are supported for flatten")
}
flatten(candidateNode, depth)