Adjust error message when bucket name conflicts with existing collections
fix https://github.com/chrislusf/seaweedfs/issues/2069
This commit is contained in:
@@ -116,7 +116,7 @@ var errorCodeResponse = map[ErrorCode]APIError{
|
|||||||
},
|
},
|
||||||
ErrBucketAlreadyExists: {
|
ErrBucketAlreadyExists: {
|
||||||
Code: "BucketAlreadyExists",
|
Code: "BucketAlreadyExists",
|
||||||
Description: "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.",
|
Description: "The requested bucket name is not available. The bucket name can not be an existing collection, and the bucket namespace is shared by all users of the system. Please select a different name and try again.",
|
||||||
HTTPStatusCode: http.StatusConflict,
|
HTTPStatusCode: http.StatusConflict,
|
||||||
},
|
},
|
||||||
ErrBucketAlreadyOwnedByYou: {
|
ErrBucketAlreadyOwnedByYou: {
|
||||||
|
|||||||
Reference in New Issue
Block a user