Provide error message when loading a speckfile that does not contain only numbers (closes #1903)

This commit is contained in:
Alexander Bock
2022-03-18 15:50:01 +01:00
parent f29dee2fe3
commit 86dcff62c4
2 changed files with 23 additions and 1 deletions

View File

@@ -65,7 +65,12 @@ void MultiThreadedSceneInitializer::initializeNode(SceneGraphNode* node) {
);
}
node->initialize();
try {
node->initialize();
}
catch (const ghoul::RuntimeError& e) {
LERRORC(e.component, e.message);
}
std::lock_guard g(_mutex);
_initializedNodes.push_back(node);
_initializingNodes.erase(node);