filter: raise --include and --exclude warning to ERROR so it appears without -v

This commit is contained in:
Nick Craig-Wood 2018-06-22 22:18:55 +01:00
parent 1550f70865
commit 935533e57f

View File

@ -173,7 +173,7 @@ func NewFilter(opt *Opt) (f *Filter, err error) {
}
if addImplicitExclude && foundExcludeRule {
fs.Infof(nil, "Using --filter is recommended instead of both --include and --exclude as the order they are parsed in is indeterminate")
fs.Errorf(nil, "Using --filter is recommended instead of both --include and --exclude as the order they are parsed in is indeterminate")
}
for _, rule := range f.Opt.FilterRule {