From c60a5ac022b4162ff5a06c81d480a967b5f466ae Mon Sep 17 00:00:00 2001 From: Kcchouette Date: Thu, 7 Mar 2019 00:13:18 +0100 Subject: [PATCH] Update users.go --- hub/users.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hub/users.go b/hub/users.go index 806314f..9b7370f 100644 --- a/hub/users.go +++ b/hub/users.go @@ -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") @@ -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 }