From d508ac3fa438390c9c4fc9c07ad03f9c8acb9bbf Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Tue, 26 Oct 2021 15:43:43 +1100 Subject: [PATCH] Fixed flatten error message --- pkg/yqlib/operator_flatten.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/yqlib/operator_flatten.go b/pkg/yqlib/operator_flatten.go index 35c91ae8..e7ccf99c 100644 --- a/pkg/yqlib/operator_flatten.go +++ b/pkg/yqlib/operator_flatten.go @@ -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)