Signed-off-by: Solomon Hykes <solomon@docker.com>
| ... | ... |
@@ -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 |