fix(db): return expected rows err for migration logs (#5597)

This commit is contained in:
Damian Debkowski authored and GitHub committed 2025-03-13 17:18:05 -07:00
1 parent 29ab0c3594
commit 70cdd3823c
1 file changed
+1 -1
@@ -475,7 +475,7 @@ func (p *Postgres) GetMigrationLog(ctx context.Context, opt ...log.Option) ([]*l
entries = append(entries, e)
}
if rows.Err() != nil {
return nil, errors.Wrap(ctx, err, op)
return nil, errors.Wrap(ctx, rows.Err(), op)
}
opts := log.GetOpts(opt...)
if opts.WithDeleteLog {