diff options
Diffstat (limited to 'hugofs/slice_fs.go')
-rw-r--r-- | hugofs/slice_fs.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hugofs/slice_fs.go b/hugofs/slice_fs.go index a9a3f1bbc..7edaf7513 100644 --- a/hugofs/slice_fs.go +++ b/hugofs/slice_fs.go @@ -14,11 +14,12 @@ package hugofs import ( + "fmt" "os" "syscall" "time" - "github.com/pkg/errors" + "errors" "github.com/spf13/afero" ) @@ -83,7 +84,7 @@ func (fs *SliceFs) LstatIfPossible(name string) (os.FileInfo, bool, error) { return decorateFileInfo(fi, fs, fs.getOpener(name), "", "", nil), false, nil } - return nil, false, errors.Errorf("lstat: files not supported: %q", name) + return nil, false, fmt.Errorf("lstat: files not supported: %q", name) } func (fs *SliceFs) Mkdir(n string, p os.FileMode) error { |