mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
Improve return value checking and error handling.
This commit is contained in:
parent
4b24cebad9
commit
daf5d0d098
14 changed files with 101 additions and 33 deletions
|
@ -136,7 +136,12 @@ bool Serializer::Serialize(SerialInfo* info, const char* func, val_list* args)
|
|||
Write(network_time, "time");
|
||||
Write(a, "len");
|
||||
|
||||
loop_over_list(*args, i) (*args)[i]->Serialize(info);
|
||||
loop_over_list(*args, i)
|
||||
if ( ! (*args)[i]->Serialize(info) )
|
||||
{
|
||||
Error("failed");
|
||||
return false;
|
||||
}
|
||||
|
||||
WriteCloseTag("call");
|
||||
WriteSeparator();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue