fix: connect error print statuscode

This commit is contained in:
Tobias Reisinger 2019-08-07 00:21:06 +02:00
parent 7299c73e0e
commit 07e8d05333

View file

@ -22,7 +22,7 @@ helpers::open_tcp_connection(char *host, char *port)
if ((status = connect(s, res->ai_addr, res->ai_addrlen)) != 0)
{
LOG_ERROR << "Error opening connection";
LOG_ERROR << "Error opening connection " << status;
freeaddrinfo(res);
return 0;
}