surface other err as well

This commit is contained in:
Nick Sardo 2017-04-26 15:26:51 -07:00
parent 334cc366be
commit f36203aec8

View file

@ -324,7 +324,8 @@ func (lbc *LoadBalancerController) sync(key string) (err error) {
// Update the UrlMap of the single loadbalancer that came through the watch. // Update the UrlMap of the single loadbalancer that came through the watch.
l7, err := lbc.CloudClusterManager.l7Pool.Get(key) l7, err := lbc.CloudClusterManager.l7Pool.Get(key)
if err != nil { 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) ing := *obj.(*extensions.Ingress)