Browse Source

add error checking when loading dat file

pull/686/head
Chris Lu 7 years ago
parent
commit
8a12fd9ec4
  1. 2
      weed/storage/volume_loading.go

2
weed/storage/volume_loading.go

@ -43,6 +43,8 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind
if e != nil {
if !os.IsPermission(e) {
return fmt.Errorf("cannot load Volume Data %s.dat: %v", fileName, e)
} else {
return fmt.Errorf("load data file %s.dat: %v", fileName, e)
}
}

Loading…
Cancel
Save