aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources/resource_metadata.go
diff options
context:
space:
mode:
Diffstat (limited to 'resources/resource_metadata.go')
-rw-r--r--resources/resource_metadata.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/resources/resource_metadata.go b/resources/resource_metadata.go
index 6c979b4bf..8954a5109 100644
--- a/resources/resource_metadata.go
+++ b/resources/resource_metadata.go
@@ -22,7 +22,6 @@ import (
"github.com/gohugoio/hugo/media"
"github.com/gohugoio/hugo/resources/resource"
- "github.com/pkg/errors"
"github.com/spf13/cast"
"github.com/gohugoio/hugo/common/maps"
@@ -85,7 +84,7 @@ func AssignMetadata(metadata []map[string]any, resources ...resource.Resource) e
glob, err := glob.GetGlob(srcKey)
if err != nil {
- return errors.Wrap(err, "failed to match resource with metadata")
+ return fmt.Errorf("failed to match resource with metadata: %w", err)
}
match := glob.Match(resourceSrcKey)