mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Prettifying reporter output in case no epxression is associated with
runtime error.
This commit is contained in:
parent
4059d4b4f1
commit
b6a0802227
3 changed files with 7 additions and 2 deletions
|
@ -318,7 +318,7 @@ void Reporter::DoLog(const char* prefix, EventHandlerPtr event, FILE* out,
|
|||
FatalError("out of memory in Reporter");
|
||||
}
|
||||
|
||||
if ( postfix )
|
||||
if ( postfix && *postfix )
|
||||
// Note, if you change this fmt string, adjust the additional
|
||||
// buffer size above.
|
||||
safe_snprintf(buffer + strlen(buffer), size - strlen(buffer), " [%s]", postfix);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue