Browser: Added character limit for Bucket Name. (#3454)

This commit is contained in:
koolhead17 2016-12-16 23:29:37 +05:30 committed by Harshavardhana
parent f7766b49aa
commit 7a17b2a585

View File

@ -805,7 +805,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 and numerals are the only allowed characters.", params[0]),
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]),
}
}
// Bucket not found custom error message.