Skip to content
/ hugo Public
forked from gohugoio/hugo

Commit

Permalink
tpl/resources: Improve resources.Concat error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring committed Aug 29, 2024
1 parent 3760926 commit aa73aa5
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 aa73aa5

Please sign in to comment.