aboutsummaryrefslogtreecommitdiffhomepage
path: root/navigation/pagemenus.go
diff options
context:
space:
mode:
Diffstat (limited to 'navigation/pagemenus.go')
-rw-r--r--navigation/pagemenus.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/navigation/pagemenus.go b/navigation/pagemenus.go
index 46ed5221e..7b4f6f648 100644
--- a/navigation/pagemenus.go
+++ b/navigation/pagemenus.go
@@ -14,10 +14,11 @@
package navigation
import (
+ "fmt"
+
"github.com/gohugoio/hugo/common/maps"
"github.com/gohugoio/hugo/common/types"
- "github.com/pkg/errors"
"github.com/spf13/cast"
)
@@ -76,7 +77,7 @@ func PageMenusFromPage(p Page) (PageMenus, error) {
}
var wrapErr = func(err error) error {
- return errors.Wrapf(err, "unable to process menus for page %q", p.Path())
+ return fmt.Errorf("unable to process menus for page %q: %w", p.Path(), err)
}
// Could be a structured menu entry