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)