mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
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:
parent
0e40f7e6af
commit
33d6e1a011
6 changed files with 100 additions and 8 deletions
|
@ -0,0 +1,4 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
warning: ../input.log:3: Skipping input with missing non-optional value (index field y)
|
||||
received termination signal
|
||||
>>>
|
|
@ -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={
|
||||
{
|
||||
}
|
||||
}]
|
||||
}]
|
||||
}]
|
Loading…
Add table
Add a link
Reference in a new issue