mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-06 10:04:43 +08:00
Fixed flatten error message
This commit is contained in:
@@ -42,7 +42,7 @@ func flattenOp(d *dataTreeNavigator, context Context, expressionNode *Expression
|
|||||||
candidate := el.Value.(*CandidateNode)
|
candidate := el.Value.(*CandidateNode)
|
||||||
candidateNode := unwrapDoc(candidate.Node)
|
candidateNode := unwrapDoc(candidate.Node)
|
||||||
if candidateNode.Kind != yaml.SequenceNode {
|
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)
|
flatten(candidateNode, depth)
|
||||||
|
|||||||
Reference in New Issue
Block a user