summaryrefslogtreecommitdiffstats
path: root/resources/resource_transformers/integrity/integrity.go
diff options
context:
space:
mode:
Diffstat (limited to 'resources/resource_transformers/integrity/integrity.go')
-rw-r--r--resources/resource_transformers/integrity/integrity.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/resources/resource_transformers/integrity/integrity.go b/resources/resource_transformers/integrity/integrity.go
index bbd0b6675..e15754685 100644
--- a/resources/resource_transformers/integrity/integrity.go
+++ b/resources/resource_transformers/integrity/integrity.go
@@ -19,14 +19,13 @@ import (
"crypto/sha512"
"encoding/base64"
"encoding/hex"
+ "fmt"
"hash"
"html/template"
"io"
"github.com/gohugoio/hugo/resources/internal"
- "github.com/pkg/errors"
-
"github.com/gohugoio/hugo/resources"
"github.com/gohugoio/hugo/resources/resource"
)
@@ -92,7 +91,7 @@ func newHash(algo string) (hash.Hash, error) {
case "sha512":
return sha512.New(), nil
default:
- return nil, errors.Errorf("unsupported crypto algo: %q, use either md5, sha256, sha384 or sha512", algo)
+ return nil, fmt.Errorf("unsupported crypto algo: %q, use either md5, sha256, sha384 or sha512", algo)
}
}