bugfix update logging
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user