Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/fileInfo.go')
-rw-r--r--hugolib/fileInfo.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/hugolib/fileInfo.go b/hugolib/fileInfo.go
index fdfd34b16..1cdd7041d 100644
--- a/hugolib/fileInfo.go
+++ b/hugolib/fileInfo.go
@@ -14,12 +14,11 @@
package hugolib
import (
+ "fmt"
"strings"
"github.com/gohugoio/hugo/hugofs/files"
- "github.com/pkg/errors"
-
"github.com/gohugoio/hugo/hugofs"
"github.com/spf13/afero"
@@ -41,7 +40,7 @@ type fileInfo struct {
func (fi *fileInfo) Open() (afero.File, error) {
f, err := fi.FileInfo().Meta().Open()
if err != nil {
- err = errors.Wrap(err, "fileInfo")
+ err = fmt.Errorf("fileInfo: %w", err)
}
return f, err