• Alfredo Di Napoli's avatar
    Fix rollaback behavior (issue #480) · 94e2cbf9
    Alfredo Di Napoli authored
    This commit fixes the bug with DbTx rollbacks and domain-specific
    errors. What we do now is throwing an exception during the evaluation of
    `DbFail`, to later catch it _after_ `withTransactionM` has performed a
    clean rollback, and only at that point we call `throwError`.
    
    This also means that we need to catch `DbTx` errors via the `MonadError`
    interface, not via the exception-handling interface, to get proper
    rollback behavior.
    94e2cbf9
Name
Last commit
Last update
..
API Loading commit data...
Core Loading commit data...
Data/HashMap/Strict Loading commit data...
Database Loading commit data...
MicroServices Loading commit data...
Orphans Loading commit data...
System Loading commit data...
Utils Loading commit data...
API.hs Loading commit data...
Core.hs Loading commit data...
Database.hs Loading commit data...
Defaults.hs Loading commit data...
Orphans.hs Loading commit data...