diff --git a/source/glest_game/main/main.cpp b/source/glest_game/main/main.cpp index 74be045c..0c6d0223 100644 --- a/source/glest_game/main/main.cpp +++ b/source/glest_game/main/main.cpp @@ -80,10 +80,11 @@ public: program->showMessage(msg); } else { - message("#2 An error ocurred and Glest will close.\nError msg = [" + (msg != NULL ? string(msg) : string("?")) + "]\n\nPlease report this bug to "+mailString); + string err = "#2 An error ocurred and Glest will close.\nError msg = [" + (msg != NULL ? string(msg) : string("?")) + "]\n\nPlease report this bug to "+mailString; #ifdef WIN32 - message += ", attaching the generated "+getCrashDumpFileName()+" file."; + err += string(", attaching the generated ") + getCrashDumpFileName() + string(" file."); #endif + message(err); } showCursor(true); restoreVideoMode(true);