If we have thrown on another thread, crash, but don't lose the error. (It will be buried at the end of the log, but no one really looks there.)

This commit is contained in:
Steve Checkoway
2007-05-06 17:45:44 +00:00
parent 1ce1b46814
commit c8c9a14507
+2 -1
View File
@@ -54,7 +54,8 @@ void RageException::Throw( const char *sFmt, ... )
DebugBreak();
#endif
ASSERT( g_HandlerThreadID == RageThread::GetInvalidThreadID() || g_HandlerThreadID == RageThread::GetCurrentThreadID() );
ASSERT_M( g_HandlerThreadID == RageThread::GetInvalidThreadID() || g_HandlerThreadID == RageThread::GetCurrentThreadID(),
ssprintf("RageException::Throw() on another thread: %s", error.c_str()) );
if( g_CleanupHandler != NULL )
g_CleanupHandler( error );