mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Raise internal error when failing to read contents of state file with -x option
Instead of just exiting w/ code 0
This commit is contained in:
parent
ff7b92ffc8
commit
143427e35e
1 changed files with 2 additions and 1 deletions
|
@ -888,7 +888,8 @@ int main(int argc, char** argv)
|
||||||
UnserialInfo info(&s);
|
UnserialInfo info(&s);
|
||||||
info.print = stdout;
|
info.print = stdout;
|
||||||
info.install_uniques = true;
|
info.install_uniques = true;
|
||||||
s.Read(&info, bst_file);
|
if ( ! s.Read(&info, bst_file) )
|
||||||
|
internal_error("Failed to read events from %s\n", bst_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue