Procházet zdrojové kódy

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

Brandon Philips před 12 roky
rodič
revize
8174669519
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      etcd.go

+ 1 - 1
etcd.go

@@ -204,7 +204,7 @@ func main() {
 	argInfo.Name = strings.TrimSpace(argInfo.Name)
 	argInfo.Name = strings.TrimSpace(argInfo.Name)
 
 
 	if 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")
 	argInfo.RaftURL = checkURL(argInfo.RaftURL, "http")