added diagnostics

This commit is contained in:
Dave White 2003-11-17 17:17:19 +00:00
parent 527594d2aa
commit c65592c51a

View file

@ -85,7 +85,9 @@ connection connect(const std::string& host, int port)
throw error(SDLNet_GetError());
}
std::cerr << "opening connection\n";
TCPsocket sock = SDLNet_TCP_Open(&ip);
std::cerr << "opened connection okay\n";
if(!sock) {
throw error(SDLNet_GetError());
}