Skip to content

Commit

Permalink
chore: wrap internal error
Browse files Browse the repository at this point in the history
  • Loading branch information
dhth committed Sep 10, 2024
1 parent 3c4c31b commit 970c148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/persistence/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ func runInTx(db *sql.DB, fn func(tx *sql.Tx) error) error {

rollbackErr := tx.Rollback()
if rollbackErr != nil {
return fmt.Errorf("%w: %w: %s", ErrCouldntRollBackTx, rollbackErr, err.Error())
return fmt.Errorf("%w: %w: %w", ErrCouldntRollBackTx, rollbackErr, err)
}

return err
Expand Down

0 comments on commit 970c148

Please sign in to comment.