~bigbes/core-go: 7ccaeb92

database: panic on errors from Commit/Rollback

The previous change would eat the error from fn(tx); in truth we should
ensure that it is returned to the caller. This panics instead if an
error occurs during Commit or Rollback. I'm not sure of what scenarios
would cause this to occur, but they all probably deserve further
investigation - a panic will raise it to our attention.

Drew DeVault <sir@cmpwn.com> — 2021-05-17 12:18:48 UTC

Commit 7ccaeb924e86037cd7636a3d44cf86504e4daec7view raw patch

Parent(s): a7d80e21

1 changed file(s)

FileStatus+
database/middleware.go M +8 -5