diff --git a/stepmania/src/RageException.cpp b/stepmania/src/RageException.cpp index 67ecc47d90..7f47f97d0c 100644 --- a/stepmania/src/RageException.cpp +++ b/stepmania/src/RageException.cpp @@ -39,11 +39,23 @@ void RageException::Throw(const char *fmt, ...) CString error = vssprintf( fmt, va ); va_end(va); + CString msg = ssprintf( + "\n" + "//////////////////////////////////////////////////////\n" + "Exception: %s\n" + "//////////////////////////////////////////////////////\n" + "", + error.GetString()); if(LOG) { - LOG->Trace("Fatal exception thrown: %s", error.GetString()); + LOG->Trace("%s", msg.GetString()); LOG->Flush(); } + else + { + printf("%s\n", msg.GetString()); + fflush(stdout); + } #if defined(WIN32) && defined(DEBUG) MessageBox( NULL, error, "Fatal Error", MB_OK ); diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 04939450ba..cc09dcdefc 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -342,17 +342,6 @@ int main(int argc, char* argv[]) catch( RageException e ) { g_sErrorString = e.what(); - - LOG->Trace( - "\n" - "//////////////////////////////////////////////////////\n" - "Exception: %s\n" - "//////////////////////////////////////////////////////\n" - "\n", - g_sErrorString.GetString() - ); - - LOG->Flush(); } #endif