diff options
Diffstat (limited to 'hugolib/paths')
-rw-r--r-- | hugolib/paths/paths.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hugolib/paths/paths.go b/hugolib/paths/paths.go index 9d5716e16..501665676 100644 --- a/hugolib/paths/paths.go +++ b/hugolib/paths/paths.go @@ -23,7 +23,6 @@ import ( "github.com/gohugoio/hugo/config" "github.com/gohugoio/hugo/langs" "github.com/gohugoio/hugo/modules" - "github.com/pkg/errors" "github.com/gohugoio/hugo/hugofs" ) @@ -83,7 +82,7 @@ func New(fs *hugofs.Fs, cfg config.Provider) (*Paths, error) { baseURLstr := cfg.GetString("baseURL") baseURL, err := newBaseURLFromString(baseURLstr) if err != nil { - return nil, errors.Wrapf(err, "Failed to create baseURL from %q:", baseURLstr) + return nil, fmt.Errorf("Failed to create baseURL from %q:: %w", baseURLstr, err) } contentDir := filepath.Clean(cfg.GetString("contentDir")) |