Correct error messages for filters/matchers
This commit is contained in:
parent
fbafd82c62
commit
1a8bcdfdfc
@ -17,7 +17,7 @@ func NewSizeFilter(value string) (ffuf.FilterProvider, error) {
|
||||
for _, sv := range strings.Split(value, ",") {
|
||||
intval, err := strconv.ParseInt(sv, 10, 0)
|
||||
if err != nil {
|
||||
return &SizeFilter{}, fmt.Errorf("Size filter (-fs): invalid value: %s", value)
|
||||
return &SizeFilter{}, fmt.Errorf("Size filter or matcher (-fs / -ms): invalid value: %s", value)
|
||||
}
|
||||
intvals = append(intvals, intval)
|
||||
}
|
||||
|
||||
@ -17,7 +17,7 @@ func NewStatusFilter(value string) (ffuf.FilterProvider, error) {
|
||||
for _, sv := range strings.Split(value, ",") {
|
||||
intval, err := strconv.ParseInt(sv, 10, 0)
|
||||
if err != nil {
|
||||
return &StatusFilter{}, fmt.Errorf("Status filter (-fc): invalid value %s", value)
|
||||
return &StatusFilter{}, fmt.Errorf("Status filter or matcher (-fc / -mc): invalid value %s", value)
|
||||
}
|
||||
intvals = append(intvals, intval)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user