- marked a few Printf calls in critical error paths as PRINT_NONOTIFY.
This commit is contained in:
parent
07f08de474
commit
ef887403cf
5 changed files with 7 additions and 8 deletions
|
|
@ -683,7 +683,7 @@ void FSerializer::ReadObjects(bool hubtravel)
|
|||
{
|
||||
r->mObjects.Clamp(size); // close all inner objects.
|
||||
// In case something in here throws an error, let's continue and deal with it later.
|
||||
Printf(TEXTCOLOR_RED "'%s'\n while restoring %s\n", err.GetMessage(), obj ? obj->GetClass()->TypeName.GetChars() : "invalid object");
|
||||
Printf(PRINT_NONOTIFY, TEXTCOLOR_RED "'%s'\n while restoring %s\n", err.GetMessage(), obj ? obj->GetClass()->TypeName.GetChars() : "invalid object");
|
||||
mErrors++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -925,7 +925,7 @@ void M_Init (void)
|
|||
catch (CVMAbortException &err)
|
||||
{
|
||||
err.MaybePrintMessage();
|
||||
Printf("%s", err.stacktrace.GetChars());
|
||||
Printf(PRINT_NONOTIFY, "%s", err.stacktrace.GetChars());
|
||||
I_FatalError("Failed to initialize menus");
|
||||
}
|
||||
M_CreateMenus();
|
||||
|
|
|
|||
|
|
@ -682,8 +682,7 @@ void CVMAbortException::MaybePrintMessage()
|
|||
auto m = GetMessage();
|
||||
if (m != nullptr)
|
||||
{
|
||||
Printf(TEXTCOLOR_RED);
|
||||
Printf("%s\n", m);
|
||||
Printf(PRINT_NONOTIFY, TEXTCOLOR_RED "%s\n", m);
|
||||
SetMessage("");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue