Skip to content
Snippets Groups Projects
Commit 45ca1ce8 authored by rswindell's avatar rswindell
Browse files

Log a helpful message when failing to connect to server.

This outputs a garbage server name currently, when there is no server.ini in
the xtrn/dicewarz2 directory.
parent b100e714
Branches
Tags
No related merge requests found
......@@ -104,7 +104,7 @@ function JSONClient(serverAddr,serverPort) {
this.socket.connect(this.serverAddr,this.serverPort,this.settings.CONNECTION_TIMEOUT);
if(!this.socket.is_connected)
throw("error connecting to server");
throw("error " + this.socket.error + " connecting to TCP port " + this.serverPort + " on server " + this.serverAddr);
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment