diff --git a/examples/roundtrip/main.cpp b/examples/roundtrip/main.cpp index 79aec66..700b260 100644 --- a/examples/roundtrip/main.cpp +++ b/examples/roundtrip/main.cpp @@ -23,6 +23,13 @@ int main() } auto node = reg->bind(global.id).get(); + + if (!node.has_value()) + { + std::cout << std::format("failed to bind {}: {}", global.id, node.error().message) << std::endl; + return; + } + auto info = node->info(); std::cout << std::format("Node ({}): ", info.id) << std::endl; @@ -38,4 +45,4 @@ int main() core->update(); return 0; -} \ No newline at end of file +}