From: Christian Heller Date: Sun, 25 Oct 2020 03:08:50 +0000 (+0100) Subject: Parse ARGUMENT_ERROR. X-Git-Url: https://plomlompom.com/repos/process_descriptions?a=commitdiff_plain;h=37207fcf8108638e9da2397451fb9a650ec7a9ab;p=plomrogue2-experiments Parse ARGUMENT_ERROR. --- diff --git a/new2/rogue_chat.html b/new2/rogue_chat.html index dd0036e..dd9cc8d 100644 --- a/new2/rogue_chat.html +++ b/new2/rogue_chat.html @@ -226,8 +226,8 @@ websocket.onmessage = function (event) { tui.log_msg(tokens[1]); } else if (tokens[0] === 'UNHANDLED_INPUT') { tui.log_msg('unknown command'); - } else if (tokens[0] === 'GAME_ERROR') { - tui.log_msg('game error: ' + tokens[1]); + } else if (tokens[0] === 'ARGUMENT_ERROR') { + tui.log_msg('syntax error: ' + tokens[1]); } else if (tokens[0] === 'GAME_ERROR') { tui.log_msg('game error: ' + tokens[1]); } else if (tokens[0] === 'PONG') {