aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_render.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/site_render.go')
-rw-r--r--hugolib/site_render.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/hugolib/site_render.go b/hugolib/site_render.go
index c09e5cc99..b572c443e 100644
--- a/hugolib/site_render.go
+++ b/hugolib/site_render.go
@@ -23,8 +23,9 @@ import (
"github.com/gohugoio/hugo/config"
+ "errors"
+
"github.com/gohugoio/hugo/output"
- "github.com/pkg/errors"
"github.com/gohugoio/hugo/resources/page"
"github.com/gohugoio/hugo/resources/page/pagemeta"
@@ -95,7 +96,7 @@ func (s *Site) renderPages(ctx *siteRenderContext) error {
err := <-errs
if err != nil {
- return errors.Wrap(err, "failed to render pages")
+ return fmt.Errorf("failed to render pages: %w", err)
}
return nil
}