Browse Source

add logging

Matthew R. Kasun 3 years ago
parent
commit
84d237f8f6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netclient/command/commands.go

+ 1 - 1
netclient/command/commands.go

@@ -18,7 +18,7 @@ func Join(cfg config.ClientConfig, privateKey string) error {
 	var err error
 	err = functions.JoinNetwork(cfg, privateKey)
 	if err != nil && !cfg.DebugOn {
-		ncutils.Log(err)
+		ncutils.Log(err.Error())
 		if !strings.Contains(err.Error(), "ALREADY_INSTALLED") {
 			ncutils.PrintLog("error installing: "+err.Error(), 1)
 			err = functions.LeaveNetwork(cfg.Network)