mirror of
https://github.com/minio/minio.git
synced 2025-11-26 04:26:12 -05:00
object: DeleteBucket should return proper error for BucketNotEmpty. (#1489)
Fixes #1488
This commit is contained in:
committed by
Anand Babu (AB) Periasamy
parent
f145e1042f
commit
82fbe908a3
@@ -30,6 +30,10 @@ func toObjectErr(err error, params ...string) error {
|
||||
if len(params) >= 1 {
|
||||
return BucketNotFound{Bucket: params[0]}
|
||||
}
|
||||
case errVolumeNotEmpty:
|
||||
if len(params) >= 1 {
|
||||
return BucketNotEmpty{Bucket: params[0]}
|
||||
}
|
||||
case errVolumeExists:
|
||||
if len(params) >= 1 {
|
||||
return BucketExists{Bucket: params[0]}
|
||||
|
||||
Reference in New Issue
Block a user