XL: Return the right error (#3944)

This commit is contained in:
Krishnan Parthasarathi 2017-03-21 23:03:25 +05:30 committed by Harshavardhana
parent 13c4ce3617
commit 9f9ba1e984

View file

@ -349,7 +349,7 @@ func (xl xlObjects) listMultipartUploads(bucket, prefix, keyMarker, uploadIDMark
}
// For any walk error return right away.
if walkResult.err != nil {
return ListMultipartsInfo{}, err
return ListMultipartsInfo{}, walkResult.err
}
entry := strings.TrimPrefix(walkResult.entry, retainSlash(bucket))
// For an entry looking like a directory, store and