Amend error message to reflect usage situation

This commit is contained in:
Bryan Boreham committed 2015-07-01 14:58:42 +01:00
1 parent 91099694c9
commit 84238a0262
1 file changed
+2 -2
+2 -2
View File
@@ -16,7 +16,7 @@ func CheckNetworkFree(subnet *net.IPNet) error {
}
for _, route := range routes {
if route.Dst != nil && overlaps(route.Dst, subnet) {
return fmt.Errorf("Network %s would overlap with existing route %s", subnet, route.Dst)
return fmt.Errorf("Network %s overlaps with existing route %s", subnet, route.Dst)
}
}
return nil
@@ -36,7 +36,7 @@ func CheckAddressOverlap(addr net.IP) error {
}
for _, route := range routes {
if route.Dst != nil && route.Dst.Contains(addr) {
return fmt.Errorf("Address %s would overlap with existing route %s", addr, route.Dst)
return fmt.Errorf("Address %s overlaps with existing route %s", addr, route.Dst)
}
}
return nil