From e0f4366f4ca3259bfe582fb1dd8951f2005160ab Mon Sep 17 00:00:00 2001 From: chrislu Date: Fri, 26 Aug 2022 16:49:48 -0700 Subject: [PATCH] more detailed error related to https://github.com/seaweedfs/seaweedfs/issues/3528 --- weed/storage/store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/storage/store.go b/weed/storage/store.go index 2345f7d49..643c71c6d 100644 --- a/weed/storage/store.go +++ b/weed/storage/store.go @@ -511,12 +511,12 @@ func (s *Store) ConfigureVolume(i needle.VolumeId, replication string) error { vifFile := filepath.Join(location.Directory, baseFileName+".vif") volumeInfo, _, _, err := volume_info.MaybeLoadVolumeInfo(vifFile) if err != nil { - return fmt.Errorf("volume %d fail to load vif", i) + return fmt.Errorf("volume %d fail to load vif: %v", i, err) } volumeInfo.Replication = replication err = volume_info.SaveVolumeInfo(vifFile, volumeInfo) if err != nil { - return fmt.Errorf("volume %d fail to save vif", i) + return fmt.Errorf("volume %d fail to save vif: %v", i, err) } return nil }