Print parsing errors in openspace.cfg

This commit is contained in:
Alexander Bock
2017-07-11 15:17:11 -04:00
parent 6d0c80cc91
commit 83cbe7f891

View File

@@ -201,6 +201,7 @@ void OpenSpaceEngine::create(int argc, char** argv,
requestClose = false;
LDEBUG("Initialize FileSystem");
ghoul::initialize();
// Initialize the LogManager and add the console log as this will be used every time
@@ -214,7 +215,6 @@ void OpenSpaceEngine::create(int argc, char** argv,
);
LogMgr.addLog(std::make_unique<ConsoleLog>());
LDEBUG("Initialize FileSystem");
#ifdef __APPLE__
ghoul::filesystem::File app(argv[0]);
@@ -282,8 +282,9 @@ void OpenSpaceEngine::create(int argc, char** argv,
}
throw;
}
catch (const ghoul::RuntimeError&) {
catch (const ghoul::RuntimeError& e) {
LFATAL("Loading of configuration file '" << configurationFilePath << "' failed");
LFATALC(e.component, e.message);
throw;
}