Skip to content

Commit

Permalink
Improved Error Msg For Bucket Names that Contain non-LOWERCASE chars (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott McClellan committed Apr 20, 2017
1 parent 9a88156 commit d4f2e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/client-s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d4f2e0a

Please sign in to comment.