Browse code

Fix inconsistency in IP address parsing errors

Signed-off-by: Solomon Hykes <solomon@docker.com>

Solomon Hykes authored on 2014/08/13 15:45:40
Showing 1 changed files
... ...
@@ -20,7 +20,7 @@ func NewIpOpt(ref *net.IP, defaultVal string) *IpOpt {
20 20
 func (o *IpOpt) Set(val string) error {
21 21
 	ip := net.ParseIP(val)
22 22
 	if ip == nil {
23
-		return fmt.Errorf("incorrect IP format")
23
+		return fmt.Errorf("%s is not an ip address", val)
24 24
 	}
25 25
 	(*o.IP) = net.ParseIP(val)
26 26
 	return nil