fix error message

related to https://github.com/chrislusf/seaweedfs/issues/2012
This commit is contained in:
Chris Lu 2021-04-21 01:40:16 -07:00
parent bcd400995a
commit ae74d8f02a

View file

@ -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