diff options
Diffstat (limited to 'source/filesystem.go')
-rw-r--r-- | source/filesystem.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/filesystem.go b/source/filesystem.go index 4d509c566..79d027c5c 100644 --- a/source/filesystem.go +++ b/source/filesystem.go @@ -14,11 +14,10 @@ package source import ( + "fmt" "path/filepath" "sync" - "github.com/pkg/errors" - "github.com/gohugoio/hugo/hugofs" ) @@ -49,7 +48,7 @@ func (f *Filesystem) Files() ([]File, error) { f.filesInit.Do(func() { err := f.captureFiles() if err != nil { - f.filesInitErr = errors.Wrap(err, "capture files") + f.filesInitErr = fmt.Errorf("capture files: %w", err) } }) return f.files, f.filesInitErr |