From 5de88383810e70be92384971b2e0be246206edb3 Mon Sep 17 00:00:00 2001 From: Mathieu Guindon Date: Fri, 18 Apr 2025 12:18:54 -0400 Subject: [PATCH] let xmldoc update proceed with dbtag/ghtag mismatches --- .../Pipeline/Sections/SyncXmldoc/SyncXmldocSection.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rubberduckvba.Server/ContentSynchronization/Pipeline/Sections/SyncXmldoc/SyncXmldocSection.cs b/rubberduckvba.Server/ContentSynchronization/Pipeline/Sections/SyncXmldoc/SyncXmldocSection.cs index 5940b9e..8da95bd 100644 --- a/rubberduckvba.Server/ContentSynchronization/Pipeline/Sections/SyncXmldoc/SyncXmldocSection.cs +++ b/rubberduckvba.Server/ContentSynchronization/Pipeline/Sections/SyncXmldoc/SyncXmldocSection.cs @@ -129,8 +129,8 @@ await Task.WhenAll([ } else { - // that's an old tag then; do not process - throw new InvalidOperationException($"Tag metadata mismatch, xmldoc update will not proceed; GitHub@main:{ghMain.Name} ({ghMain.DateCreated}) | rubberduckdb@main: {dbMain.Name} ({dbMain.DateCreated})"); + // could be an old tag, ...or the db is just out of date + Logger.LogWarning($"Tag metadata mismatch, xmldoc update will not proceed; GitHub@main:{ghMain.Name} ({ghMain.DateCreated}) | rubberduckdb@main: {dbMain.Name} ({dbMain.DateCreated})"); } } if (ghNext.Name != dbNext.Name) @@ -141,8 +141,8 @@ await Task.WhenAll([ } else { - // that's an old tag then; do not process - throw new InvalidOperationException($"Tag metadata mismatch, xmldoc update will not proceed; GitHub@main:{ghMain.Name} ({ghMain.DateCreated}) | rubberduckdb@main: {dbMain.Name} ({dbMain.DateCreated})"); + // could be an old tag, ...or the db is just out of date + Logger.LogWarning($"Tag metadata mismatch, xmldoc update will not proceed; GitHub@main:{ghNext.Name} ({ghNext.DateCreated}) | rubberduckdb@main: {dbNext.Name} ({dbNext.DateCreated})"); } }