Skip to content

Commit

Permalink
Fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
imcsk8 committed Jan 3, 2018
1 parent fd3af25 commit 179cef6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/network/node/sdn_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (plugin *OsdnNode) alreadySetUp(localSubnetGatewayCIDR string, clusterNetwo
}
}
if !found {
return errors.New("Local subnet gateway CIDR not found")
return errors.New("local subnet gateway CIDR not found")
}

routes, err := netlink.RouteList(l, netlink.FAMILY_V4)
Expand All @@ -57,12 +57,12 @@ func (plugin *OsdnNode) alreadySetUp(localSubnetGatewayCIDR string, clusterNetwo
}
}
if !found {
return errors.New("Cluster CIDR not found")
return errors.New("cluster CIDR not found")
}
}

if !plugin.oc.AlreadySetUp() {
return errors.New("Plugin is not setup")
return errors.New("plugin is not setup")
}

return nil
Expand Down Expand Up @@ -97,7 +97,7 @@ func deleteLocalSubnetRoute(device, localSubnetCIDR string) {
})

if err != nil {
glog.Errorf("Error removing %s route from dev %s: %v; if the route appears later it will not be deleted.", localSubnetCIDR, device, err)
glog.Errorf("error removing %s route from dev %s: %v; if the route appears later it will not be deleted.", localSubnetCIDR, device, err)
}
}

Expand Down

0 comments on commit 179cef6

Please sign in to comment.