kirdy: report connect error
This commit is contained in:
parent
ab91b3f7f0
commit
7dfb1f6d4e
@ -8,6 +8,8 @@
|
|||||||
Kirdy::Kirdy(asio::string_view host, asio::string_view service)
|
Kirdy::Kirdy(asio::string_view host, asio::string_view service)
|
||||||
{
|
{
|
||||||
socket.connect(host, service);
|
socket.connect(host, service);
|
||||||
|
if(!socket)
|
||||||
|
std::cerr << "failed to connect to Kirdy at " << host << ": " << socket.error().message() << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
Json::Value Kirdy::command(Json::Value &request)
|
Json::Value Kirdy::command(Json::Value &request)
|
||||||
|
Loading…
Reference in New Issue
Block a user