Skip to content

Commit

Permalink
Fix inconsistency in IP address parsing errors
Browse files Browse the repository at this point in the history
Signed-off-by: Solomon Hykes <[email protected]>
  • Loading branch information
Solomon Hykes committed Aug 13, 2014
1 parent 1d10c55 commit a30fd7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opts/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func NewIpOpt(ref *net.IP, defaultVal string) *IpOpt {
func (o *IpOpt) Set(val string) error {
ip := net.ParseIP(val)
if ip == nil {
return fmt.Errorf("incorrect IP format")
return fmt.Errorf("%s is not an ip address", val)
}
(*o.IP) = net.ParseIP(val)
return nil
Expand Down

0 comments on commit a30fd7a

Please sign in to comment.