From c8c9a145071a67ab253eac92032f2510893a90ed Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sun, 6 May 2007 17:45:44 +0000 Subject: [PATCH] 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.) --- stepmania/src/RageException.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageException.cpp b/stepmania/src/RageException.cpp index e4f575c3aa..9e766e4917 100644 --- a/stepmania/src/RageException.cpp +++ b/stepmania/src/RageException.cpp @@ -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 );