mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 11:09:37 -06:00
Print parsing errors in openspace.cfg
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user