updater error logs

This commit is contained in:
2025-07-24 06:53:02 -07:00
parent 087923a13f
commit 67daf7027d
4 changed files with 30 additions and 19 deletions

View File

@@ -108,13 +108,14 @@ func updateEpochStatus() {
// Check for Epoch-specific files
epochPatchesApplied := false
stats, err := epoch.Update(paths.EpochPath, false, true, true)
if err != nil {
log.Debugf("Failed to get download Epoch patches: %v", err)
}
if stats.Outdated == 0 {
log.Debug("Nothing is outdated")
epochPatchesApplied = true
stats := epoch.Update(paths.EpochPath, false, true, true)
if stats.Error != nil {
log.Error(stats.Error.Error())
} else {
if stats.Outdated == 0 {
log.Debug("Everything is up-to-date!")
epochPatchesApplied = true
}
}
// Check if patched files have the correct size (matches bundled versions)