We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b51214b commit 20a9c7dCopy full SHA for 20a9c7d
pkg/upgradeservice/deploy/deploy.go
@@ -119,6 +119,9 @@ func Deploy(opts DeployOptions) error {
119
120
go func() (finalError error) {
121
defer func() {
122
+ if r := recover(); r != nil {
123
+ finalError = fmt.Errorf("recovered from panic during cluster upgrade: %v", r)
124
+ }
125
if finalError != nil {
126
logger.Error(errors.Wrap(finalError, "failed to deploy"))
127
if err := task.SetStatusUpgradeFailed(opts.Params.AppSlug, finalError.Error()); err != nil {
0 commit comments