Skip to content

Commit

Permalink
fix(deploy): rollback error not showed
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Jun 25, 2024
1 parent 11bd893 commit be32b2a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/werf/bundle/apply/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ func runRollbackPlan(

rollbackPlanExecutionErr := rollbackPlanExecutor.Execute(ctx)
if rollbackPlanExecutionErr != nil {
criticalErrs = append(criticalErrs, fmt.Errorf("error executing rollback plan: %w", err))
criticalErrs = append(criticalErrs, fmt.Errorf("error executing rollback plan: %w", rollbackPlanExecutionErr))
}

if ops, found, err := rollbackPlan.WorthyCompletedOperations(); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ require (
github.com/werf/kubedog v0.12.4-0.20240329141850-9e5c458d11bb
github.com/werf/lockgate v0.1.1
github.com/werf/logboek v0.6.1
github.com/werf/nelm v0.0.0-20240625125648-a9fe7f1b9b9f
github.com/werf/nelm v0.0.0-20240625145502-4469f11aa59c
go.opentelemetry.io/otel v1.24.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.24.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.24.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1402,8 +1402,8 @@ github.com/werf/lockgate v0.1.1 h1:S400JFYjtWfE4i4LY9FA8zx0fMdfui9DPrBiTciCrx4=
github.com/werf/lockgate v0.1.1/go.mod h1:0yIFSLq9ausy6ejNxF5uUBf/Ib6daMAfXuCaTMZJzIE=
github.com/werf/logboek v0.6.1 h1:oEe6FkmlKg0z0n80oZjLplj6sXcBeLleCkjfOOZEL2g=
github.com/werf/logboek v0.6.1/go.mod h1:Gez5J4bxekyr6MxTmIJyId1F61rpO+0/V4vjCIEIZmk=
github.com/werf/nelm v0.0.0-20240625125648-a9fe7f1b9b9f h1:mfSia0DW6839LmBkEjx/4KD1VH5cLyAHORuLKRRk5GI=
github.com/werf/nelm v0.0.0-20240625125648-a9fe7f1b9b9f/go.mod h1:iWZLt9obpkH7kh9LlyZvO7fz3vVx1w6XkZ5G7Qc5Ek0=
github.com/werf/nelm v0.0.0-20240625145502-4469f11aa59c h1:7G+o+mQsaNQWI9isbGMD16y4JaQ+uxhiglJJmnN6HWc=
github.com/werf/nelm v0.0.0-20240625145502-4469f11aa59c/go.mod h1:iWZLt9obpkH7kh9LlyZvO7fz3vVx1w6XkZ5G7Qc5Ek0=
github.com/xanzy/go-gitlab v0.31.0/go.mod h1:sPLojNBn68fMUWSxIJtdVVIP8uSBYqesTfDUseX11Ug=
github.com/xanzy/ssh-agent v0.2.1/go.mod h1:mLlQY/MoOhWBj+gOGMQkOeiEvkx+8pJSI+0Bx9h2kr4=
github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM=
Expand Down

0 comments on commit be32b2a

Please sign in to comment.