private/migrate: add version to failed migration step

Change-Id: I98984636f2f7df794d54e5c65cf649e7f0beeded
This commit is contained in:
Egon Elbre 2023-01-23 15:25:42 +02:00
parent 250f505f4d
commit c320835a38

View File

@ -206,7 +206,7 @@ func (migration *Migration) Run(ctx context.Context, log *zap.Logger) error {
return nil
})
if err != nil {
return Error.Wrap(err)
return Error.New("v%d: %w", step.Version, err)
}
}