- marked a few Printf calls in critical error paths as PRINT_NONOTIFY.

This commit is contained in:
Christoph Oelckers 2022-10-20 23:55:29 +02:00
commit ef887403cf
5 changed files with 7 additions and 8 deletions

View file

@ -538,7 +538,7 @@ bool FThinkerList::DoDestroyThinkers()
{
Printf("VM exception in DestroyThinkers:\n");
exception.MaybePrintMessage();
Printf("%s", exception.stacktrace.GetChars());
Printf(PRINT_NONOTIFY, "%s", exception.stacktrace.GetChars());
// forcibly delete this. Cleanup may be incomplete, though.
node->ObjectFlags |= OF_YesReallyDelete;
delete node;
@ -546,7 +546,7 @@ bool FThinkerList::DoDestroyThinkers()
}
catch (CRecoverableError &exception)
{
Printf("Error in DestroyThinkers: %s\n", exception.GetMessage());
Printf(PRINT_NONOTIFY, "Error in DestroyThinkers: %s\n", exception.GetMessage());
// forcibly delete this. Cleanup may be incomplete, though.
node->ObjectFlags |= OF_YesReallyDelete;
delete node;