Make sure to convert the disk errors to object errors (#5480)

Fixes a bug introduced in the directory support PR, with
this fix s3fs works properly.
master
Harshavardhana 7 years ago committed by Nitish Tiwari
parent da2faa19a1
commit 1ebbc2ce88
  1. 5
      cmd/xl-v1-object.go

@ -433,7 +433,10 @@ func (xl xlObjects) GetObjectInfo(bucket, object string) (oi ObjectInfo, e error
}
if hasSuffix(object, slashSeparator) {
return xl.getObjectInfoDir(bucket, object)
if oi, e = xl.getObjectInfoDir(bucket, object); e != nil {
return oi, toObjectErr(e, bucket, object)
}
return oi, nil
}
info, err := xl.getObjectInfo(bucket, object)

Loading…
Cancel
Save