mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
make error info clearly
This commit is contained in:
parent
459b537885
commit
d6b3dcf5ab
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user