mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
handle dns.ErrBucketConflict as BucketAlreadyExists (#12013)
This commit is contained in:
@@ -2004,6 +2004,8 @@ func toAPIErrorCode(ctx context.Context, err error) (apiErr APIErrorCode) {
|
||||
apiErr = ErrKeyTooLongError
|
||||
case dns.ErrInvalidBucketName:
|
||||
apiErr = ErrInvalidBucketName
|
||||
case dns.ErrBucketConflict:
|
||||
apiErr = ErrBucketAlreadyExists
|
||||
default:
|
||||
var ie, iw int
|
||||
// This work-around is to handle the issue golang/go#30648
|
||||
|
||||
Reference in New Issue
Block a user