fixing sso error handling

This commit is contained in:
afeiszli
2022-09-19 15:37:00 -04:00
parent d7517dab1c
commit f63b88db73
10 changed files with 42 additions and 22 deletions

View File

@@ -301,8 +301,7 @@ func WipeLocal(cfg *config.ClientConfig) error {
if cfg.Node.Interface != "" {
if ncutils.FileExists(dir + cfg.Node.Interface + ".conf") {
if err := os.Remove(dir + cfg.Node.Interface + ".conf"); err != nil {
log.Println("error removing .conf:")
log.Println(err.Error())
logger.Log(0, err.Error())
fail = true
}
}