Skip to content

Commit

Permalink
Update users.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Kcchouette authored and dennwc committed Mar 7, 2019
1 parent a6e91ec commit c60a5ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hub/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type UserDatabase interface {

func (h *Hub) validateUserName(name string) error {
if name == "" {
return errors.New("name should be empty")
return errors.New("name should not be empty")
}
if len(name) > userNameMax {
return errors.New("name is too long")
Expand All @@ -43,7 +43,7 @@ func (h *Hub) validateUserName(name string) error {
return errors.New("name should not contain null characters")
}
if strings.ContainsAny(name, "<>") {
return errors.New("name contains on of the invalid characters")
return errors.New("name contains one of the invalid characters")
}
return nil
}
Expand Down

0 comments on commit c60a5ac

Please sign in to comment.