#4393 Handle unknown exceptions in uploader better

Output is highly technical, but better than nothing
master
Andrey Kleshchev 2025-07-22 19:14:18 +03:00 committed by Andrey Kleshchev
parent d84897967e
commit 472ea3b49a
2 changed files with 4 additions and 2 deletions

View File

@ -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);
}

View File

@ -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;