More informative message when erasure fails to read a part of an object (#2989)

This commit is contained in:
Anis Elleuch 2016-10-18 21:09:26 +01:00 committed by Harshavardhana
parent bbba8e432a
commit 2208992e6a
1 changed files with 1 additions and 0 deletions

View File

@ -200,6 +200,7 @@ func (xl xlObjects) GetObject(bucket, object string, startOffset int64, length i
// Start erasure decoding and writing to the client.
n, err := erasureReadFile(mw, onlineDisks, bucket, pathJoin(object, partName), partOffset, readSize, partSize, xlMeta.Erasure.BlockSize, xlMeta.Erasure.DataBlocks, xlMeta.Erasure.ParityBlocks, checkSums, ckSumAlgo, pool)
if err != nil {
errorIf(err, "Unable to read %s of the object `%s/%s`.", partName, bucket, object)
return toObjectErr(err, bucket, object)
}