Skip to content

fix(dumbo): preserve original error when transaction rollback fails#183

Open
JonCanning wants to merge 1 commit into
event-driven-io:mainfrom
JonCanning:fix/transaction-error-suppression
Open

fix(dumbo): preserve original error when transaction rollback fails#183
JonCanning wants to merge 1 commit into
event-driven-io:mainfrom
JonCanning:fix/transaction-error-suppression

Conversation

@JonCanning

Copy link
Copy Markdown

When a withTransaction callback throws, executeInTransaction attempts a rollback. If rollback also fails (e.g. connection closed, SQLITE_MISUSE), the rollback error replaces the original callback error — making debugging impossible.

Wrap rollback in its own try/catch so the original error is always preserved and re-thrown to the caller.

When a withTransaction callback throws, executeInTransaction
attempts a rollback. If rollback also fails (e.g. connection
closed, SQLITE_MISUSE), the rollback error replaces the original
callback error — making debugging impossible.

Wrap rollback in its own try/catch so the original error is
always preserved and re-thrown to the caller.
@oskardudycz
oskardudycz force-pushed the main branch 2 times, most recently from 695ee47 to 11fc511 Compare June 29, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant