Explorar o código

fix(etcd): be more explicit with name error message

Brandon Philips %!s(int64=12) %!d(string=hai) anos
pai
achega
8174669519
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      etcd.go

+ 1 - 1
etcd.go

@@ -204,7 +204,7 @@ func main() {
 	argInfo.Name = strings.TrimSpace(argInfo.Name)
 
 	if argInfo.Name == "" {
-		fatal("Please give the name of the server")
+		fatal("ERROR: server name required. e.g. '-n=server_name'")
 	}
 
 	argInfo.RaftURL = checkURL(argInfo.RaftURL, "http")