diff options
Diffstat (limited to 'hugofs/decorators.go')
-rw-r--r-- | hugofs/decorators.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hugofs/decorators.go b/hugofs/decorators.go index be0ae495d..3762d753b 100644 --- a/hugofs/decorators.go +++ b/hugofs/decorators.go @@ -14,12 +14,11 @@ package hugofs import ( + "fmt" "os" "path/filepath" "strings" - "github.com/pkg/errors" - "github.com/spf13/afero" ) @@ -232,7 +231,7 @@ func (l *baseFileDecoratorFile) Readdir(c int) (ofi []os.FileInfo, err error) { } fi, err = l.fs.decorate(fi, filename) if err != nil { - return nil, errors.Wrap(err, "decorate") + return nil, fmt.Errorf("decorate: %w", err) } fisp = append(fisp, fi) } |