Skip to content

Commit

Permalink
tpl/resources: Improve resources.Concat error message
Browse files Browse the repository at this point in the history
Closes #7428
  • Loading branch information
jmooring authored and bep committed Aug 30, 2024
1 parent 53a8de2 commit a3684c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpl/resources/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a3684c8

Please sign in to comment.