diff --git a/helpers/open_tcp_connection.cc b/helpers/open_tcp_connection.cc
index 099b8fa..9b4c1ec 100644
--- a/helpers/open_tcp_connection.cc
+++ b/helpers/open_tcp_connection.cc
@@ -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;
     }