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

@ -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);