Improved logs for failed parses

This commit is contained in:
Simon Martens
2025-10-02 00:25:12 +02:00
parent ddd8171c08
commit 6dc9c997ad
2 changed files with 16 additions and 1 deletions

View File

@@ -618,7 +618,9 @@ func (k *KGPZ) Pull() {
if changed {
logging.ObjDebug(&k.Repo, "Remote changed. Reparsing")
k.Serialize()
if err := k.Serialize(); err != nil {
logging.Error(err, "Error parsing XML after git pull. Using mixed old/new data.")
}
k.EnrichAndRebuildIndex()
// Rescan pictures after pull