private/migrate: add version to failed migration step
Change-Id: I98984636f2f7df794d54e5c65cf649e7f0beeded
This commit is contained in:
parent
250f505f4d
commit
c320835a38
@ -206,7 +206,7 @@ func (migration *Migration) Run(ctx context.Context, log *zap.Logger) error {
|
|||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return Error.Wrap(err)
|
return Error.New("v%d: %w", step.Version, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user