diff --git a/workflow/templateresolution/context.go b/workflow/templateresolution/context.go index 71eeb567c6fb..4137d45f762c 100644 --- a/workflow/templateresolution/context.go +++ b/workflow/templateresolution/context.go @@ -168,7 +168,7 @@ func (ctx *Context) GetTemplate(h wfv1.TemplateReferenceHolder) (*wfv1.Template, return true, nil }) if err != nil { - return nil, errors.Errorf(errors.CodeInternal, err) + return nil, err } return tmpl, nil } @@ -187,7 +187,7 @@ func (ctx *Context) GetTemplate(h wfv1.TemplateReferenceHolder) (*wfv1.Template, return true, nil }) if err != nil { - return nil, errors.Errorf(errors.CodeInternal, err) + return nil, err } return tmpl, nil }