- file system error management refactoring.
This commit is contained in:
parent
145450a044
commit
1dc47f91c2
19 changed files with 288 additions and 152 deletions
|
|
@ -1233,7 +1233,7 @@ void D_DoomLoop ()
|
|||
return;
|
||||
}
|
||||
}
|
||||
catch (CRecoverableError &error)
|
||||
catch (const CRecoverableError &error)
|
||||
{
|
||||
if (error.GetMessage ())
|
||||
{
|
||||
|
|
@ -1241,6 +1241,14 @@ void D_DoomLoop ()
|
|||
}
|
||||
D_ErrorCleanup ();
|
||||
}
|
||||
catch (const FileSystemException& error) // in case this propagates up to here it should be treated as a recoverable error.
|
||||
{
|
||||
if (error.what())
|
||||
{
|
||||
Printf(PRINT_NONOTIFY | PRINT_BOLD, "\n%s\n", error.what());
|
||||
}
|
||||
D_ErrorCleanup();
|
||||
}
|
||||
catch (CVMAbortException &error)
|
||||
{
|
||||
error.MaybePrintMessage();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue