Skip to content

Commit

Permalink
fix: report original error in migrator
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jul 17, 2022
1 parent 21b593b commit d3f6138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion popx/migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ func (m *Migrator) isolatedTransaction(ctx context.Context, direction string, fn
}

if dberr != nil {
return errors.Wrapf(dberr, "error committing or rolling back transaction: %v", dberr)
return errors.Wrapf(err, "error committing or rolling back transaction: %v", dberr)
}

return err
Expand Down

0 comments on commit d3f6138

Please sign in to comment.