diff --git a/versioner/staggered.go b/versioner/staggered.go index 5e1a66d8c..ac666de04 100644 --- a/versioner/staggered.go +++ b/versioner/staggered.go @@ -59,6 +59,9 @@ func versionExt(path string) string { // Rename versions with old version format func (v Staggered) renameOld() { err := filepath.Walk(v.versionsPath, func(path string, f os.FileInfo, err error) error { + if err != nil { + return err + } if f.Mode().IsRegular() { versionUnix, err := strconv.ParseInt(strings.Replace(filepath.Ext(path), ".v", "", 1), 10, 0) if err == nil {