Skip to content
Snippets Groups Projects
Commit 8336ea34 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Catch JSONClient() errors here and report (throw) them up.

parent 271dca08
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #243 passed
......@@ -14,10 +14,14 @@ load(root + "diceobj.js");
var game_id = "dicewarz2";
var timer = new Timer();
try {
var client = new JSONClient(serverAddr,serverPort);
var settings = loadSettings("dice.ini");
var ai = loadAI("ai.ini");
var aiTakingTurns = {};
} catch(e) {
throw new Error(e);
}
var data = {
games:client.read(game_id,"games",1),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment