From aa73aa5e3caaa70c66d5513ba8cd961eff7b6cb4 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Thu, 29 Aug 2024 15:28:49 -0700 Subject: [PATCH] tpl/resources: Improve resources.Concat error message Closes #7428 --- tpl/resources/resources.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/resources/resources.go b/tpl/resources/resources.go index 78340b1ff2b..5c2068b68f5 100644 --- a/tpl/resources/resources.go +++ b/tpl/resources/resources.go @@ -224,7 +224,7 @@ func (ns *Namespace) Concat(targetPathIn any, r any) (resource.Resource, error) case resource.ResourcesConverter: rr = v.ToResources() default: - return nil, fmt.Errorf("slice %T not supported in concat", r) + return nil, fmt.Errorf("expected slice of Resource objects, received %T instead", r) } if len(rr) == 0 {