#4393 Handle unknown exceptions in uploader better
Output is highly technical, but better than nothingmaster
parent
d84897967e
commit
472ea3b49a
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
#include "llmatrix4a.h"
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/exception/diagnostic_information.hpp>
|
||||
|
||||
std::list<LLModelLoader*> LLModelLoader::sActiveLoaderList;
|
||||
|
||||
|
|
@ -184,7 +185,7 @@ void LLModelLoader::run()
|
|||
LLSD args;
|
||||
args["Message"] = "UnknownException";
|
||||
args["FILENAME"] = mFilename;
|
||||
args["EXCEPTION"] = "Unknown exception";
|
||||
args["EXCEPTION"] = boost::current_exception_diagnostic_information();
|
||||
mWarningsArray.append(args);
|
||||
setLoadState(ERROR_PARSING);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@
|
|||
|
||||
#include <boost/regex.hpp>
|
||||
#include <boost/algorithm/string/replace.hpp>
|
||||
#include <boost/exception/diagnostic_information.hpp>
|
||||
#include <fstream>
|
||||
|
||||
static const std::string lod_suffix[LLModel::NUM_LODS] =
|
||||
|
|
@ -154,7 +155,7 @@ bool LLGLTFLoader::OpenFile(const std::string &filename)
|
|||
LLSD args;
|
||||
args["Message"] = "ParsingErrorException";
|
||||
args["FILENAME"] = filename;
|
||||
args["EXCEPTION"] = "Unknown exception";
|
||||
args["EXCEPTION"] = boost::current_exception_diagnostic_information();
|
||||
mWarningsArray.append(args);
|
||||
setLoadState(ERROR_PARSING);
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue