fix(rivetkit): surface native sqlite kv errors to callers#4645
fix(rivetkit): surface native sqlite kv errors to callers#4645NathanFlurry merged 1 commit intomainfrom
Conversation
PR Review: fix(rivetkit): surface native sqlite kv errors to callersOverviewThis PR adds error enrichment to the native SQLite database wrapper so that underlying KV channel errors are surfaced when SQLite I/O operations fail. The fix appends the most recent KV error (retrieved via Strengths
Issues1. Incomplete test coverage (moderate) The test file only exercises the 2. In-place error mutation (minor)
3. Regex heuristic is undocumented (minor)
// Matches SQLite error messages that indicate storage-layer failures
// mapping to KV channel errors in the native runtime.
function shouldAttachNativeKvError(message: string): boolean {4. The callback loop in 5.
VerdictCorrect, well-scoped fix that addresses a real debuggability gap. The main gap before merging is test coverage: the enrichment logic for |
7825238 to
f6957bf
Compare
c3091c0 to
bb11c47
Compare
c1ab8a4 to
a45301b
Compare
f9a5fe1 to
98a33e4
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: