From 2a69901d529ccbe94760488e9327a203f01fe734 Mon Sep 17 00:00:00 2001 From: Deniz Zoeteman Date: Tue, 17 Jul 2018 18:56:31 +0200 Subject: [PATCH] Add message to error for stopping rolling update after failure --- pkg/instancegroups/rollingupdate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/instancegroups/rollingupdate.go b/pkg/instancegroups/rollingupdate.go index a266da223f..d441faf874 100644 --- a/pkg/instancegroups/rollingupdate.go +++ b/pkg/instancegroups/rollingupdate.go @@ -114,7 +114,7 @@ func (c *RollingUpdateCluster) RollingUpdate(groups map[string]*cloudinstances.C // Do not continue update if bastion(s) failed for _, err := range results { if err != nil { - return err + return fmt.Errorf("bastion not healthy after update, stopping rolling-update: %q", err) } } @@ -169,7 +169,7 @@ func (c *RollingUpdateCluster) RollingUpdate(groups map[string]*cloudinstances.C // Do not continue update if master(s) failed, cluster is potentially in an unhealthy state for _, err := range results { if err != nil { - return err + return fmt.Errorf("master not healthy after update, stopping rolling-update: %q", err) } }