make error info clearly

pull/564/head
tanshanshan 2018-08-28 15:56:55 +08:00
parent 459b537885
commit d6b3dcf5ab
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ func (o *CombinedInsecureServingOptions) Validate() []error {
}
if len(o.BindAddress) > 0 && net.ParseIP(o.BindAddress) == nil {
errors = append(errors, fmt.Errorf("--address has no valid IP address"))
errors = append(errors, fmt.Errorf("--address %v is an invalid IP address", o.BindAddress))
}
return errors