diff options
Diffstat (limited to 'navigation/menu.go')
-rw-r--r-- | navigation/menu.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/navigation/menu.go b/navigation/menu.go index 02e1f8fec..5e4996f39 100644 --- a/navigation/menu.go +++ b/navigation/menu.go @@ -19,8 +19,6 @@ import ( "sort" "strings" - "github.com/pkg/errors" - "github.com/gohugoio/hugo/common/maps" "github.com/gohugoio/hugo/common/types" "github.com/gohugoio/hugo/compare" @@ -190,7 +188,7 @@ func (m *MenuEntry) MarshallMap(ime map[string]any) error { } if err != nil { - return errors.Wrapf(err, "failed to marshal menu entry %q", m.KeyName()) + return fmt.Errorf("failed to marshal menu entry %q: %w", m.KeyName(), err) } return nil |