From 6af93cd2bd89d38ade8d9384fe3798aed1a38a65 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sat, 4 Feb 2023 20:48:57 -0500 Subject: Remove uses of pkg/errors Signed-off-by: Dave Henderson --- gomplate.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gomplate.go') diff --git a/gomplate.go b/gomplate.go index 585c9acb..68151556 100644 --- a/gomplate.go +++ b/gomplate.go @@ -13,7 +13,6 @@ import ( "github.com/hairyhenderson/gomplate/v3/data" "github.com/hairyhenderson/gomplate/v3/internal/config" - "github.com/pkg/errors" ) // RunTemplates - run all gomplate templates specified by the given configuration @@ -113,7 +112,7 @@ func mappingNamer(outMap string, tr *Renderer) func(context.Context, string) (st err = tr.renderTemplatesWithData(ctx, []Template{{Name: "", Text: outMap, Writer: out}}, tctx) if err != nil { - return "", errors.Wrapf(err, "failed to render outputMap with ctx %+v and inPath %s", tctx, inPath) + return "", fmt.Errorf("failed to render outputMap with ctx %+v and inPath %s: %w", tctx, inPath, err) } return filepath.Clean(strings.TrimSpace(out.String())), nil -- cgit v1.2.3