diff --git a/weed/storage/volume_vacuum.go b/weed/storage/volume_vacuum.go index b5db37705..5884eca87 100644 --- a/weed/storage/volume_vacuum.go +++ b/weed/storage/volume_vacuum.go @@ -181,13 +181,13 @@ func (v *Volume) makeupDiff(newDatFileName, newIdxFileName, oldDatFileName, oldI oldIdxFile, err := os.Open(oldIdxFileName) if err != nil { - return err + return fmt.Errorf("makeupDiff open %s failed: %v", oldIdxFileName, err) } defer oldIdxFile.Close() oldDatFile, err := os.Open(oldDatFileName) if err != nil { - return err + return fmt.Errorf("makeupDiff open %s failed: %v", oldDatFileName, err) } oldDatBackend := backend.NewDiskFile(oldDatFile) defer oldDatBackend.Close()