Comment out catch-all exception handler for coroutines for hopefully more meaningful callstacks

meow-7.2.2
Ansariel 2018-02-18 14:35:13 +01:00
parent acfe64221e
commit a0e19aabe4
1 changed files with 8 additions and 6 deletions

View File

@ -340,12 +340,14 @@ void LLCoros::toplevel(coro::self& self, CoroData* data, const callable_t& calla
// viewer will carry on.
LOG_UNHANDLED_EXCEPTION(STRINGIZE("coroutine " << data->mName));
}
catch (...)
{
// Any OTHER kind of uncaught exception will cause the viewer to
// crash, hopefully informatively.
CRASH_ON_UNHANDLED_EXCEPTION(STRINGIZE("coroutine " << data->mName));
}
// <FS:Ansariel> Disable for more meaningful callstacks
//catch (...)
//{
// // Any OTHER kind of uncaught exception will cause the viewer to
// // crash, hopefully informatively.
// CRASH_ON_UNHANDLED_EXCEPTION(STRINGIZE("coroutine " << data->mName));
//}
// </FS:Ansariel>
// This cleanup isn't perfectly symmetrical with the way we initially set
// data->mPrev, but this is our last chance to reset Current.
Current().reset(data->mPrev);