From 2208992e6adadf2bd1ea7b914ab0b10363edbe33 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Tue, 18 Oct 2016 21:09:26 +0100 Subject: [PATCH] More informative message when erasure fails to read a part of an object (#2989) --- cmd/xl-v1-object.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/xl-v1-object.go b/cmd/xl-v1-object.go index 130a28d1f..49e3069d7 100644 --- a/cmd/xl-v1-object.go +++ b/cmd/xl-v1-object.go @@ -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) }