[Server] Use clearer error message when failing to bind port

experimental-mono
David Cernat 6 years ago
parent 3d40a162bc
commit a3111fbcc1

@ -271,7 +271,7 @@ int main(int argc, char *argv[])
case RakNet::SOCKET_FAILED_TO_BIND: case RakNet::SOCKET_FAILED_TO_BIND:
case RakNet::SOCKET_PORT_ALREADY_IN_USE: case RakNet::SOCKET_PORT_ALREADY_IN_USE:
case RakNet::PORT_CANNOT_BE_ZERO: case RakNet::PORT_CANNOT_BE_ZERO:
throw runtime_error("Failed to bind port"); throw runtime_error("Failed to bind port. Make sure a server isn't already running on that port.");
case RakNet::SOCKET_FAILED_TEST_SEND: case RakNet::SOCKET_FAILED_TEST_SEND:
case RakNet::SOCKET_FAMILY_NOT_SUPPORTED: case RakNet::SOCKET_FAMILY_NOT_SUPPORTED:
case RakNet::FAILED_TO_CREATE_NETWORK_THREAD: case RakNet::FAILED_TO_CREATE_NETWORK_THREAD:

Loading…
Cancel
Save