From 37a6839f7f21d532b1572834396488c60233f8cf Mon Sep 17 00:00:00 2001 From: Distortions81 Date: Mon, 20 Jan 2025 03:49:36 -0700 Subject: [PATCH] add update logging --- modupdate/modUpdate.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modupdate/modUpdate.go b/modupdate/modUpdate.go index ba484af9..e184e345 100755 --- a/modupdate/modUpdate.go +++ b/modupdate/modUpdate.go @@ -78,6 +78,7 @@ func UpdateMods(doReport bool) { if err != nil { buf := fmt.Sprintf("Error while attempting to update game mods: %v", err.Error()) cwlog.DoLogCW(buf) + return } lines := strings.Split(out, "\n") @@ -85,6 +86,7 @@ func UpdateMods(doReport bool) { for _, line := range lines { if strings.Contains(line, "Download") { buf = buf + line + "\n" + cwlog.DoLogCW(line) } } if buf != "" {