mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 20:50:59 -05:00
Print the identifier of the offending scene graph node when the specification fails
This commit is contained in:
@@ -654,7 +654,12 @@ int addSceneGraphNode(lua_State* L) {
|
||||
global::renderEngine->scene()->initializeNode(node);
|
||||
}
|
||||
catch (const documentation::SpecificationError& e) {
|
||||
LERRORC("Scene", ghoul::to_string(e.result));
|
||||
std::string cat =
|
||||
d.hasValue<std::string>("Identifier") ?
|
||||
d.value<std::string>("Identifier") :
|
||||
"Scene";
|
||||
LERRORC(cat, ghoul::to_string(e.result));
|
||||
|
||||
return ghoul::lua::luaError(
|
||||
L,
|
||||
fmt::format("Error loading scene graph node: {}", e.what())
|
||||
|
||||
Reference in New Issue
Block a user