From 561b98067f90326cc3c1d73cab6836a2e50728cd Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Wed, 13 Aug 2014 06:45:40 +0000 Subject: [PATCH] Fix inconsistency in IP address parsing errors Signed-off-by: Solomon Hykes --- opts/ip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opts/ip.go b/opts/ip.go index f0c29750bc..f8a493e68a 100644 --- a/opts/ip.go +++ b/opts/ip.go @@ -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