Return BucketAlreadyExists when bucket exists with another user

This commit is contained in:
Remco Verhoef
2017-05-08 14:53:47 -07:00
committed by Harshavardhana
parent 0a8cf1a6b0
commit 2d814e340f
3 changed files with 14 additions and 1 deletions

View File

@@ -144,6 +144,13 @@ func (e BucketNotFound) Error() string {
return "Bucket not found: " + e.Bucket
}
// BucketAlreadyExists the requested bucket name is not available.
type BucketAlreadyExists GenericError
func (e BucketAlreadyExists) Error() string {
return "The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again."
}
// BucketAlreadyOwnedByYou already owned by you.
type BucketAlreadyOwnedByYou GenericError