net: Make a couple of SDLNet_GetError() report lines slightly less confusing

This commit is contained in:
Ignacio R. Morelle 2012-10-24 03:41:31 +00:00
parent 1ca8e1ca89
commit 69bc7422d8

View File

@ -568,7 +568,7 @@ connection accept_connection_pending(std::vector<TCPsocket>& pending_sockets,
const int res = SDLNet_TCP_AddSocket(socket_set,psock);
if(res == -1) {
ERR_NW << "SDLNet_GetError() is " << SDLNet_GetError() << "\n";
ERR_NW << "SDLNet_GetError(): " << SDLNet_GetError() << "\n";
SDLNet_TCP_Close(psock);
throw network::error(_("Could not add socket to socket set"));
@ -636,7 +636,7 @@ connection accept_connection()
pending_sockets.push_back(sock);
} else {
ERR_NW << "Pending socket set is full! Disconnecting " << sock << " connection\n";
ERR_NW << "SDLNet_GetError() is " << SDLNet_GetError() << "\n";
ERR_NW << "SDLNet_GetError(): " << SDLNet_GetError() << "\n";
SDLNet_TCP_Close(sock);
}