tpl: Change error message on missing resource

Fixes #6942
This commit is contained in:
Sam Smith authored and Bjørn Erik Pedersen committed 2020-03-02 18:46:14 +01:00
1 parent 305ce1c9ec
commit d7798906d8
1 file changed
+3
+3
View File
@@ -299,6 +299,9 @@ func (ns *Namespace) resolveArgs(args []interface{}) (resources.ResourceTransfor
r, ok := args[1].(resources.ResourceTransformer)
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])
}