Skip to content

Commit

Permalink
feat(filter-eq): return MsgInvalidValue
Browse files Browse the repository at this point in the history
return MsgInvalidValue if any invalid value is passed
  • Loading branch information
Alexander Yukal committed Jan 18, 2024
1 parent b53b7e4 commit c83bae1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,9 @@ func filterEq(proto, value reflect.Value) string {
value = reflect.ValueOf(value.Len())
hint = fmt.Sprintf(MsgEqSetLen, proto.Interface())

case reflect.Invalid:
return MsgInvalidValue

default:
hint = fmt.Sprintf(MsgEq, proto.Interface())
}
Expand Down

0 comments on commit c83bae1

Please sign in to comment.