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,10 +867,16 @@ 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")));
Configurable *rootcfg = create<Configurable>(config);
if (root_str.size() > 0) {
LOG(INFO) << "Setting root to " << root_str;
rootcfg = create<Configurable>(rootcfg, root_str);
Configurable *rootcfg = nullptr;
try {
rootcfg = create<Configurable>(config);
if (root_str.size() > 0) {
LOG(INFO) << "Setting root to " << root_str;
rootcfg = create<Configurable>(rootcfg, root_str);
}
} catch (const std::exception &e) {
LOG(FATAL) << "Exception setting root: " << e.what();
}
//root_config = rootcfg->getConfig();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment