Skip to content

Commit 68aba96

Browse files
Do not swallow v22 migration failures.
Update Lite/Database/DuckDbInitializer.cs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 28afa2f commit 68aba96

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lite/Database/DuckDbInitializer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,8 @@ New tables only — no existing table changes needed. Tables created by
595595
}
596596
catch (Exception ex)
597597
{
598-
_logger?.LogWarning("Migration to v22 encountered an error (non-fatal): {Error}", ex.Message);
598+
_logger?.LogError(ex, "Migration to v22 failed");
599+
throw;
599600
}
600601
}
601602
}

0 commit comments

Comments
 (0)