diff options
Diffstat (limited to 'src/Net/Connection.cpp')
-rw-r--r-- | src/Net/Connection.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Net/Connection.cpp b/src/Net/Connection.cpp index 5d221fb..ac3121d 100644 --- a/src/Net/Connection.cpp +++ b/src/Net/Connection.cpp @@ -22,6 +22,8 @@ #include <cstring> #include <sys/socket.h> +#include <iostream> + namespace Mad { namespace Net { @@ -34,6 +36,8 @@ void Connection::doHandshake() { if(ret == GNUTLS_E_INTERRUPTED || ret == GNUTLS_E_AGAIN) return; + std::cerr << "Handshake error: " << gnutls_strerror(ret) << std::endl; + // TODO: Error doDisconnect(); return; |