leave cleanup

This commit is contained in:
Matthew R Kasun
2022-08-29 05:35:23 -04:00
parent cc4f461286
commit 6ca8bce70d
3 changed files with 129 additions and 118 deletions

View File

@@ -21,7 +21,7 @@ func Join(cfg *config.ClientConfig, privateKey string) error {
if err != nil {
if !strings.Contains(err.Error(), "ALREADY_INSTALLED") {
logger.Log(0, "error installing: ", err.Error())
err = functions.WipeLocal(cfg.Network)
err = functions.WipeLocal(cfg)
if err != nil {
logger.Log(1, "error removing artifacts: ", err.Error())
}