From c320835a38c5c8786a6c9d50922714a1f14c96bf Mon Sep 17 00:00:00 2001 From: Egon Elbre Date: Mon, 23 Jan 2023 15:25:42 +0200 Subject: [PATCH] private/migrate: add version to failed migration step Change-Id: I98984636f2f7df794d54e5c65cf649e7f0beeded --- private/migrate/versions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/private/migrate/versions.go b/private/migrate/versions.go index 0b6351c54..fc67cf9c1 100644 --- a/private/migrate/versions.go +++ b/private/migrate/versions.go @@ -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) } }