ソースを参照

fix client validation messages

abhishek9686 10 ヶ月 前
コミット
79048868d9
1 ファイル変更2 行追加2 行削除
  1. 2 2
      controllers/regex.go

+ 2 - 2
controllers/regex.go

@@ -6,8 +6,8 @@ import (
 )
 
 var (
-	errInvalidExtClientPubKey  = errors.New("incorrect ext client public key")
-	errInvalidExtClientID      = errors.New("client ID must be alphanumderic and/or dashes and less that 15 chars")
+	errInvalidExtClientPubKey  = errors.New("incorrect client public key")
+	errInvalidExtClientID      = errors.New("node name must be alphanumderic and/or dashes and less that 15 chars")
 	errInvalidExtClientExtraIP = errors.New("client extra ip must be a valid cidr")
 	errInvalidExtClientDNS     = errors.New("client dns must be a valid ip address")
 	errDuplicateExtClientName  = errors.New("duplicate client name")