From 105a4eed8be96294c1b3d33ec560de99cf5f09dc Mon Sep 17 00:00:00 2001 From: Theis Pieter Hollebeek Date: Thu, 12 Dec 2024 10:44:27 +0100 Subject: [PATCH] log rpc.listen() result --- runtime/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/runtime/main.cpp b/runtime/main.cpp index 65409ce..4ad457b 100644 --- a/runtime/main.cpp +++ b/runtime/main.cpp @@ -55,5 +55,9 @@ int main(int argc, char** argv) auto action = sliger::rpc::action::action_from_json(std::move(req)); action->perform_action(std::move(writer), state); }); - rpc.listen(); + + auto res = rpc.listen(); + if (!res.is_ok()) { + std::cout << res.err().msg << "\n"; + } }