Skip to content

Commit 02e4545

Browse files
authored
fix: wrap error to bubble it up (#2878)
1 parent 94964f1 commit 02e4545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/openstack/loadbalancer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,7 @@ func (lbaas *LbaasV2) ensureOctaviaLoadBalancer(ctx context.Context, clusterName
16991699
lbaas.eventRecorder.Eventf(service, corev1.EventTypeWarning, eventLBRename, msg, loadbalancer.ID, loadbalancer.Name, lbName)
17001700
loadbalancer, err = renameLoadBalancer(ctx, lbaas.lb, loadbalancer, lbName, clusterName)
17011701
if err != nil {
1702-
return nil, fmt.Errorf("failed to update load balancer %s with an updated name", svcConf.lbID)
1702+
return nil, fmt.Errorf("failed to update load balancer %s with an updated name: %w", svcConf.lbID, err)
17031703
}
17041704
}
17051705

0 commit comments

Comments
 (0)