mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 16:29:21 +00:00
Merge pull request #67931 from tanshanshan/littleprint
make error info clearly
This commit is contained in:
commit
8b11fda27b
@ -157,7 +157,7 @@ func (o *CombinedInsecureServingOptions) Validate() []error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(o.BindAddress) > 0 && net.ParseIP(o.BindAddress) == nil {
|
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
|
return errors
|
||||||
|
Loading…
Reference in New Issue
Block a user