Fix inconsistency in IP address parsing errors

Signed-off-by: Solomon Hykes <solomon@docker.com>
This commit is contained in:
Solomon Hykes 2014-08-13 06:45:40 +00:00 committed by Vincent Demeester
parent 1edb726c0b
commit 561b98067f
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ func NewIpOpt(ref *net.IP, defaultVal string) *IpOpt {
func (o *IpOpt) Set(val string) error { func (o *IpOpt) Set(val string) error {
ip := net.ParseIP(val) ip := net.ParseIP(val)
if ip == nil { if ip == nil {
return fmt.Errorf("incorrect IP format") return fmt.Errorf("%s is not an ip address", val)
} }
(*o.IP) = net.ParseIP(val) (*o.IP) = net.ParseIP(val)
return nil return nil