Skip to content

Commit

Permalink
Merge pull request #4 from aboch/sa
Browse files Browse the repository at this point in the history
Fix minor static analysis issue in setup_ipv4.go
  • Loading branch information
Arnaud Porterie committed Mar 4, 2015
2 parents b8d4f90 + f59adf3 commit 764e25e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/bridge/setup_ipv4.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func checkNameserverOverlaps(nameservers []string, toCheck *net.IPNet) error {
return err
}
if networkOverlaps(toCheck, nsNetwork) {
return fmt.Errorf("Requested network %s overlaps with name server")
return fmt.Errorf("Requested network %s overlaps with name server", toCheck.String())
}
}
return nil
Expand All @@ -102,7 +102,7 @@ func checkRouteOverlaps(toCheck *net.IPNet) error {
for _, network := range networks {
// TODO Is that right?
if network.Dst != nil && networkOverlaps(toCheck, network.Dst) {
return fmt.Errorf("Requested network %s overlaps with an existing network")
return fmt.Errorf("Requested network %s overlaps with an existing network", toCheck.String())
}
}
return nil
Expand Down

0 comments on commit 764e25e

Please sign in to comment.