mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 03:22:09 -05:00
parent
305ce1c9ec
commit
d7798906d8
1 changed files with 3 additions and 0 deletions
|
@ -299,6 +299,9 @@ func (ns *Namespace) resolveArgs(args []interface{}) (resources.ResourceTransfor
|
||||||
|
|
||||||
r, ok := args[1].(resources.ResourceTransformer)
|
r, ok := args[1].(resources.ResourceTransformer)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
if _, ok := args[1].(map[string]interface{}); !ok {
|
||||||
|
return nil, nil, fmt.Errorf("no Resource provided in transformation")
|
||||||
|
}
|
||||||
return nil, nil, fmt.Errorf("type %T not supported in Resource transformations", args[0])
|
return nil, nil, fmt.Errorf("type %T not supported in Resource transformations", args[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue