Prettifying reporter output in case no epxression is associated with

runtime error.
This commit is contained in:
Robin Sommer 2016-09-28 18:18:35 -07:00
parent 4059d4b4f1
commit b6a0802227
3 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,9 @@
2.5-beta-29 | 2016-09-28 18:18:35 -0700
* Prettifying reporter output in case no epxression is associated
with runtime error. (Robin Sommer)
2.5-beta-28 | 2016-09-27 11:44:33 -0700 2.5-beta-28 | 2016-09-27 11:44:33 -0700
* Check if the number of fields in a log write are equal to the * Check if the number of fields in a log write are equal to the

View file

@ -1 +1 @@
2.5-beta-28 2.5-beta-29

View file

@ -318,7 +318,7 @@ void Reporter::DoLog(const char* prefix, EventHandlerPtr event, FILE* out,
FatalError("out of memory in Reporter"); FatalError("out of memory in Reporter");
} }
if ( postfix ) if ( postfix && *postfix )
// Note, if you change this fmt string, adjust the additional // Note, if you change this fmt string, adjust the additional
// buffer size above. // buffer size above.
safe_snprintf(buffer + strlen(buffer), size - strlen(buffer), " [%s]", postfix); safe_snprintf(buffer + strlen(buffer), size - strlen(buffer), " [%s]", postfix);