From f36203aec80a61135209d9eecfbd97ac9d5ce4a0 Mon Sep 17 00:00:00 2001 From: Nick Sardo Date: Wed, 26 Apr 2017 15:26:51 -0700 Subject: [PATCH] surface other err as well --- controllers/gce/controller/controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/gce/controller/controller.go b/controllers/gce/controller/controller.go index 50ecf9dd2..8bd472685 100644 --- a/controllers/gce/controller/controller.go +++ b/controllers/gce/controller/controller.go @@ -324,7 +324,8 @@ func (lbc *LoadBalancerController) sync(key string) (err error) { // Update the UrlMap of the single loadbalancer that came through the watch. l7, err := lbc.CloudClusterManager.l7Pool.Get(key) if err != nil { - return fmt.Errorf("%v, unable to get loadbalancer: %v", syncError, err) + syncError = fmt.Errorf("%v, unable to get loadbalancer: %v", syncError, err) + return syncError } ing := *obj.(*extensions.Ingress)