summaryrefslogtreecommitdiffstats
path: root/cache/filecache/filecache_pruner.go
diff options
context:
space:
mode:
Diffstat (limited to 'cache/filecache/filecache_pruner.go')
-rw-r--r--cache/filecache/filecache_pruner.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cache/filecache/filecache_pruner.go b/cache/filecache/filecache_pruner.go
index db1875701..e5e571972 100644
--- a/cache/filecache/filecache_pruner.go
+++ b/cache/filecache/filecache_pruner.go
@@ -14,12 +14,12 @@
package filecache
import (
+ "fmt"
"io"
"os"
"github.com/gohugoio/hugo/hugofs"
- "github.com/pkg/errors"
"github.com/spf13/afero"
)
@@ -39,7 +39,7 @@ func (c Caches) Prune() (int, error) {
if os.IsNotExist(err) {
continue
}
- return counter, errors.Wrapf(err, "failed to prune cache %q", k)
+ return counter, fmt.Errorf("failed to prune cache %q: %w", k, err)
}
}