mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 05:36:12 +00:00
Fix a bug where IgnoreErrors was inverted.
Also make an error message a little more verbose.
This commit is contained in:
@@ -217,7 +217,7 @@ func (v *PathVisitor) Visit(fn VisitorFunc) error {
|
||||
}
|
||||
info, err := v.Mapper.InfoForData(data, v.Path)
|
||||
if err != nil {
|
||||
if v.IgnoreErrors {
|
||||
if !v.IgnoreErrors {
|
||||
return err
|
||||
}
|
||||
glog.V(2).Infof("Unable to load file %q: %v", v.Path, err)
|
||||
@@ -280,7 +280,7 @@ func (v *DirectoryVisitor) Visit(fn VisitorFunc) error {
|
||||
}
|
||||
info, err := v.Mapper.InfoForData(data, path)
|
||||
if err != nil {
|
||||
if v.IgnoreErrors {
|
||||
if !v.IgnoreErrors {
|
||||
return err
|
||||
}
|
||||
glog.V(2).Infof("Unable to load file %q: %v", path, err)
|
||||
|
Reference in New Issue
Block a user