Improved Error Msg For Bucket Names that Contain non-LOWERCASE chars (#2134) (#2135)

This commit is contained in:
Scott McClellan
2017-04-22 22:15:27 +01:00
committed by Anis Elleuch
parent 9bdb7affb1
commit dd9e715599
+1 -1
View File
@@ -746,7 +746,7 @@ func isValidBucketName(bucketName string) *probe.Error {
return probe.NewError(errors.New("Bucket name should be more than 3 characters and less than 64 characters"))
}
if !validBucketName.MatchString(bucketName) {
return probe.NewError(errors.New("Bucket name can contain alphabet, '-' and numbers, but first character should be an alphabet or number"))
return probe.NewError(errors.New("Bucket names can only contain lowercase alpha characters `a-z`, numbers '0-9', or '-'. First/last character cannot be a '-'"))
}
return nil
}