mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
browser: Avoid logging BucketNotEmpty error (#8110)
This commit is contained in:
parent
de736f2864
commit
2e19619e79
@ -1972,6 +1972,8 @@ func toWebAPIError(ctx context.Context, err error) APIError {
|
|||||||
return getAPIError(ErrStorageFull)
|
return getAPIError(ErrStorageFull)
|
||||||
case BucketNotFound:
|
case BucketNotFound:
|
||||||
return getAPIError(ErrNoSuchBucket)
|
return getAPIError(ErrNoSuchBucket)
|
||||||
|
case BucketNotEmpty:
|
||||||
|
return getAPIError(ErrBucketNotEmpty)
|
||||||
case BucketExists:
|
case BucketExists:
|
||||||
return getAPIError(ErrBucketAlreadyOwnedByYou)
|
return getAPIError(ErrBucketAlreadyOwnedByYou)
|
||||||
case BucketNameInvalid:
|
case BucketNameInvalid:
|
||||||
|
@ -338,7 +338,7 @@ func testDeleteBucketWebHandler(obj ObjectLayer, instanceType string, t TestErrH
|
|||||||
{"minio", false, "false token", "Authentication failed"},
|
{"minio", false, "false token", "Authentication failed"},
|
||||||
{"minio", false, token, "The specified bucket is not valid"},
|
{"minio", false, token, "The specified bucket is not valid"},
|
||||||
{bucketName, false, token, ""},
|
{bucketName, false, token, ""},
|
||||||
{bucketName, true, token, "Bucket not empty"},
|
{bucketName, true, token, "The bucket you tried to delete is not empty"},
|
||||||
{bucketName, false, "", "JWT token missing"},
|
{bucketName, false, "", "JWT token missing"},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user