mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 13:06:30 +00:00
log rpc.listen() result
This commit is contained in:
parent
cf84770d90
commit
105a4eed8b
@ -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";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user