Browse Source

remove write and return error

Matthew R. Kasun 3 years ago
parent
commit
d626cf0e9b
2 changed files with 1 additions and 2 deletions
  1. 0 1
      netclient/command/commands.go
  2. 1 1
      netclient/functions/join.go

+ 0 - 1
netclient/command/commands.go

@@ -53,7 +53,6 @@ func Join(cfg *config.ClientConfig, privateKey string) error {
 			functions.Pull(cfg.Network, true)
 		}
 	*/
-	config.Write(cfg, cfg.Network)
 	return err
 }
 

+ 1 - 1
netclient/functions/join.go

@@ -187,7 +187,7 @@ func JoinNetwork(cfg *config.ClientConfig, privateKey string) error {
 		return err
 	}
 	if err := Register(cfg, privateKey); err != nil {
-		logger.Log(0, "registration failed", err.Error())
+		return err
 	}
 	if cfg.Daemon != "off" {
 		err = daemon.InstallDaemon(cfg)