File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments