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 {
|
if !skipDownload {
|
||||||
fmt.Printf("Updating %s...", localPath)
|
|
||||||
|
|
||||||
outFile, err := os.Create(localPath)
|
outFile, err := os.Create(localPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
stats.Error = fmt.Errorf("failed to create file %s: %v", localPath, err)
|
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()
|
resp.Body.Close()
|
||||||
downloadSuccess = true
|
downloadSuccess = true
|
||||||
|
stats.LogMessages = append(stats.LogMessages, fmt.Sprintf("Successfully downloaded %s", localPath))
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user