aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJoe Mooring <[email protected]>2024-08-29 15:28:49 -0700
committerBjørn Erik Pedersen <[email protected]>2024-08-30 08:39:29 +0200
commita3684c836111a51d5827f89144f63b8318de6995 (patch)
tree61d766c66dd7af701e7cc846572c08393e929b4f
parent53a8de21b86977efd9187955fb4bd0e75375d666 (diff)
downloadhugo-a3684c836111a51d5827f89144f63b8318de6995.tar.gz
hugo-a3684c836111a51d5827f89144f63b8318de6995.zip
tpl/resources: Improve resources.Concat error message
Closes #7428
-rw-r--r--tpl/resources/resources.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/resources/resources.go b/tpl/resources/resources.go
index 78340b1ff..5c2068b68 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 {