From 37207fcf8108638e9da2397451fb9a650ec7a9ab Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Sun, 25 Oct 2020 04:08:50 +0100
Subject: [PATCH] Parse ARGUMENT_ERROR.

---
 new2/rogue_chat.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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') {
-- 
2.30.2