Skip to content
Snippets Groups Projects
Commit 545538bd authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Attempt to catch possible windows exception

parent 27eb2bd1
No related branches found
No related tags found
1 merge request!316Resolves #343 GUI and Frame Refactor
...@@ -867,11 +867,17 @@ Configurable *ftl::config::configure(int argc, char **argv, const std::string &r ...@@ -867,11 +867,17 @@ Configurable *ftl::config::configure(int argc, char **argv, const std::string &r
config_restore = std::move(ftl::loadJSON(std::string(FTL_LOCAL_CONFIG_ROOT "/")+cfg_root_str+std::string("_session.json"))); config_restore = std::move(ftl::loadJSON(std::string(FTL_LOCAL_CONFIG_ROOT "/")+cfg_root_str+std::string("_session.json")));
Configurable *rootcfg = create<Configurable>(config); Configurable *rootcfg = nullptr;
try {
rootcfg = create<Configurable>(config);
if (root_str.size() > 0) { if (root_str.size() > 0) {
LOG(INFO) << "Setting root to " << root_str; LOG(INFO) << "Setting root to " << root_str;
rootcfg = create<Configurable>(rootcfg, root_str); rootcfg = create<Configurable>(rootcfg, root_str);
} }
} catch (const std::exception &e) {
LOG(FATAL) << "Exception setting root: " << e.what();
}
//root_config = rootcfg->getConfig(); //root_config = rootcfg->getConfig();
rootCFG = rootcfg; rootCFG = rootcfg;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment