bugfix update logging

This commit is contained in:
2025-07-24 06:57:17 -07:00
parent 4d47056e5b
commit 365171fddc

View File

@@ -67,8 +67,6 @@ func Update(wowdir string, force bool, removeUnknown bool, skipDownload bool) Up
}
if !skipDownload {
fmt.Printf("Updating %s...", localPath)
outFile, err := os.Create(localPath)
if err != nil {
stats.Error = fmt.Errorf("failed to create file %s: %v", localPath, err)
@@ -100,6 +98,7 @@ func Update(wowdir string, force bool, removeUnknown bool, skipDownload bool) Up
resp.Body.Close()
downloadSuccess = true
stats.LogMessages = append(stats.LogMessages, fmt.Sprintf("Successfully downloaded %s", localPath))
break
}