- test to see if we get better info on windows for unknown errors
This commit is contained in:
parent
51a0b50bc2
commit
790400938d
|
@ -5076,6 +5076,7 @@ int glestMain(int argc, char** argv) {
|
||||||
|
|
||||||
ExceptionHandler::handleRuntimeError(ex.c_str(),true);
|
ExceptionHandler::handleRuntimeError(ex.c_str(),true);
|
||||||
}
|
}
|
||||||
|
#ifndef WIN32_STACK_TRACE
|
||||||
catch(...) {
|
catch(...) {
|
||||||
if(GlobalStaticFlags::getIsNonGraphicalModeEnabled() == false) {
|
if(GlobalStaticFlags::getIsNonGraphicalModeEnabled() == false) {
|
||||||
soundThreadManager = (program != NULL ? program->getSoundThreadManager(true) : NULL);
|
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();
|
cleanupCRCThread();
|
||||||
|
|
||||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
|
|
|
@ -620,7 +620,7 @@ string LuaScript::errorToString(int errorCode) {
|
||||||
error+= "Error while running the error handler";
|
error+= "Error while running the error handler";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
error+= "Unknown error";
|
error+= "Unknown LUA error" + intToStr(errorCode);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -212,7 +212,7 @@ Mutex UPNP_Tools::mutexUPNP;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Didn't find error in list, so make up a generic one
|
// Didn't find error in list, so make up a generic one
|
||||||
outs << "unknown error";
|
outs << "unknown socket error";
|
||||||
}
|
}
|
||||||
outs << " (" << Target.nID << ")";
|
outs << " (" << Target.nID << ")";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user