mirror of https://github.com/minio/minio.git
Bucket names can contain hyphen (#4324)
This commit is contained in:
parent
a767ad321a
commit
9d98bf1c0f
|
@ -897,7 +897,7 @@ func toJSONError(err error, params ...string) (jerr *json2.Error) {
|
||||||
case "InvalidBucketName":
|
case "InvalidBucketName":
|
||||||
if len(params) > 0 {
|
if len(params) > 0 {
|
||||||
jerr = &json2.Error{
|
jerr = &json2.Error{
|
||||||
Message: fmt.Sprintf("Bucket Name %s is invalid. Lowercase letters, period, numerals are the only allowed characters and should be minimum 3 characters in length.", params[0]),
|
Message: fmt.Sprintf("Bucket Name %s is invalid. Lowercase letters, period, hyphen, numerals are the only allowed characters and should be minimum 3 characters in length.", params[0]),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Bucket not found custom error message.
|
// Bucket not found custom error message.
|
||||||
|
|
Loading…
Reference in New Issue