Commit Graph

1 Commits

Author SHA1 Message Date
Daniel McCarney 99eeb01984 Only wrap error given to `Rollback` when `tx.Rollback()` fails. (#3025)
Prior to this commit the `Rollback` function always wrapped the provided
error in a `sa.RollbackError`. This makes it difficult for callers to
test the type of the original error. This commit updates the `Rollback` function to only
return a `sa.RollbackError` when the call to `tx.Rollback()` produces an error.
2017-08-31 14:44:25 -04:00