- test to see if we get better info on windows for unknown errors

This commit is contained in:
Mark Vejvoda 2013-01-18 01:12:32 +00:00
parent 51a0b50bc2
commit 790400938d
3 changed files with 5 additions and 4 deletions

View File

@ -5076,6 +5076,7 @@ int glestMain(int argc, char** argv) {
ExceptionHandler::handleRuntimeError(ex.c_str(),true);
}
#ifndef WIN32_STACK_TRACE
catch(...) {
if(GlobalStaticFlags::getIsNonGraphicalModeEnabled() == false) {
soundThreadManager = (program != NULL ? program->getSoundThreadManager(true) : NULL);
@ -5086,9 +5087,9 @@ int glestMain(int argc, char** argv) {
}
}
ExceptionHandler::handleRuntimeError("Unknown error!",true);
ExceptionHandler::handleRuntimeError("Unknown error [main]!",true);
}
#endif
cleanupCRCThread();
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);

View File

@ -620,7 +620,7 @@ string LuaScript::errorToString(int errorCode) {
error+= "Error while running the error handler";
break;
default:
error+= "Unknown error";
error+= "Unknown LUA error" + intToStr(errorCode);
break;
}

View File

@ -212,7 +212,7 @@ Mutex UPNP_Tools::mutexUPNP;
else
{
// Didn't find error in list, so make up a generic one
outs << "unknown error";
outs << "unknown socket error";
}
outs << " (" << Target.nID << ")";