mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
Fixed flatten error message
This commit is contained in:
parent
80084e89cc
commit
d508ac3fa4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user