mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
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)
|
||||
if err != nil {
|
||||
return BucketNotFound{Bucket: bucket}
|
||||
return errorCause(err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user