Skip to content

Commit a06840a

Browse files
committed
fix error logs
1 parent 6cc6eb2 commit a06840a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cns/middlewares/k8sSwiftV2_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (k *K8sSWIFTv2Middleware) setRoutes(podIPInfo *cns.PodIpInfo) error {
2929
case cns.InfraNIC:
3030
infraRoutes, err := k.SetInfraRoutes()
3131
if err != nil {
32-
return errors.Wrap("failed to set infra routes")
32+
return errors.Wrap(err, "failed to set routes for infraNIC interface")
3333
}
3434
routes = append(routes, infraRoutes)
3535
podIPInfo.SkipDefaultRoutes = true

cns/middlewares/k8sSwiftV2_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (k *K8sSWIFTv2Middleware) setRoutes(podIPInfo *cns.PodIpInfo) error {
2525
// add routes for infraNIC
2626
routes, err := k.SetInfraRoutes()
2727
if err != nil {
28-
return errors.Wrap("failed to set infra routes")
28+
return errors.Wrap(err, "failed to set routes for infraNIC interface")
2929
}
3030
podIPInfo.Routes = append(podIPInfo.Routes, routes)
3131
podIPInfo.SkipDefaultRoutes = true

0 commit comments

Comments
 (0)