XL: Return the right error (#3944)

master
Krishnan Parthasarathi 8 years ago committed by Harshavardhana
parent 13c4ce3617
commit 9f9ba1e984
  1. 2
      cmd/xl-v1-multipart.go

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

Loading…
Cancel
Save