From 32781eae748d683e8bc8f745126335132c45fd53 Mon Sep 17 00:00:00 2001 From: tooptoop4 <33283496+tooptoop4@users.noreply.github.com> Date: Mon, 4 Nov 2024 21:48:40 +1100 Subject: [PATCH] Signed-off-by: tooptoop4 <33283496+tooptoop4@users.noreply.github.com> --- workflow/templateresolution/context.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }