diff --git a/versioner/staggered.go b/versioner/staggered.go index ac666de04..b9b7a545e 100644 --- a/versioner/staggered.go +++ b/versioner/staggered.go @@ -165,6 +165,9 @@ func (v Staggered) clean() { filesPerDir := make(map[string]int) err = filepath.Walk(v.versionsPath, func(path string, f os.FileInfo, err error) error { + if err != nil { + return err + } switch mode := f.Mode(); { case mode.IsDir(): filesPerDir[path] = 0