diff --git a/weed/storage/store_ec.go b/weed/storage/store_ec.go index a9b6a8ff3..f4587ba01 100644 --- a/weed/storage/store_ec.go +++ b/weed/storage/store_ec.go @@ -303,7 +303,7 @@ func (s *Store) doReadRemoteEcShardInterval(sourceDataNode string, needleId type break } if receiveErr != nil { - return fmt.Errorf("receiving ec shard %d.%d from %s: %v", vid, shardId, sourceDataNode, err) + return fmt.Errorf("receiving ec shard %d.%d from %s: %v", vid, shardId, sourceDataNode, receiveErr) } if resp.IsDeleted { is_deleted = true