Better input framework error messages for unset non-optionals

The input framework currently gives a rather opaque error message when
encountering a line in which a required value is not provided. This
change updates this behavior; the error message now provides the record
element (or the name or the index element) which was not set in the
input data, even though it is required to be set by the underlying Zeek
type.
This commit is contained in:
Johanna Amann 2023-07-21 15:11:31 +01:00
parent 0e40f7e6af
commit 33d6e1a011
6 changed files with 100 additions and 8 deletions

View file

@ -0,0 +1,14 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
### NOTE: This file has been sorted with diff-sort.
127.0.0.1
127.0.0.1
127.0.0.1
Event, [s={
Event, [s={
TableErrorEvent, ../input.log:3: Skipping input with missing non-optional value (index field y), Reporter::WARNING
[name, name2] = [s={
{
}
}]
}]
}]