mirror of https://github.com/minio/minio.git
obj: Make checkBucketExist() returns all errors (#3843)
This function was returning BucketNotFound for all errors which at least hides the fact that disks could be corrupted. This commit fixes the behavior by returning all errors that, are, by the way, Object API errors.
This commit is contained in:
parent
e5d4e7aa9d
commit
28c53a3555
|
@ -151,7 +151,7 @@ func checkBucketExist(bucket string, obj ObjectLayer) error {
|
||||||
}
|
}
|
||||||
_, err := obj.GetBucketInfo(bucket)
|
_, err := obj.GetBucketInfo(bucket)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return BucketNotFound{Bucket: bucket}
|
return errorCause(err)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue