Bucket names can contain hyphen (#4324)

This commit is contained in:
luomeiqin 2017-05-19 22:30:00 +08:00 committed by Harshavardhana
parent a767ad321a
commit 9d98bf1c0f
1 changed files with 1 additions and 1 deletions

View File

@ -897,7 +897,7 @@ func toJSONError(err error, params ...string) (jerr *json2.Error) {
case "InvalidBucketName":
if len(params) > 0 {
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.