From b7b78a503b18ee312e28e727591f7f8a64fd0867 Mon Sep 17 00:00:00 2001 From: Steve Partridge Date: Thu, 28 Feb 2019 10:51:49 -0800 Subject: [PATCH] Fix error return --- errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors.go b/errors.go index 243c1b5..980e242 100644 --- a/errors.go +++ b/errors.go @@ -45,5 +45,5 @@ var ( // ErrReplacer allows for static errors to have dynamic values func ErrReplacer(err error, replacers ...interface{}) error { - return errors.New(fmt.Errorf(err.Error(), replacers...)) + return fmt.Errorf(err.Error(), replacers...) }