From 8a12fd9ec41d93c535d89b0803e964a35728ee5a Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 9 Jul 2018 23:31:25 -0700 Subject: [PATCH] add error checking when loading dat file --- weed/storage/volume_loading.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weed/storage/volume_loading.go b/weed/storage/volume_loading.go index 457d50410..572220650 100644 --- a/weed/storage/volume_loading.go +++ b/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) } }