Add more verbose error for handshake failures

This commit is contained in:
Marc Di Luzio 2015-01-25 13:17:14 +00:00
parent 89fc5302ea
commit f17b3a17fe

View file

@ -108,7 +108,10 @@ void PerformServerHandshake(const ClientInfo &client, const std::string &game)
// Verify handshake
if ( std::string(buffer) != std::string(handshake) )
{
std::cerr<<"Handshake was \""<<handshake<<"\" but recieved \""<<buffer<<"\""<<std::endl;
fatal_error("Error in client handshake");
}
std::clog<<"TTRTS: Success on handshake with player "<<(int)client.player<< std::endl;
}