home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dc4726
)
Parse ARGUMENT_ERROR.
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 25 Oct 2020 03:08:50 +0000
(
04:08
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 25 Oct 2020 03:08:50 +0000
(
04:08
+0100)
new2/rogue_chat.html
patch
|
blob
|
history
diff --git
a/new2/rogue_chat.html
b/new2/rogue_chat.html
index dd0036ec7f8e47ce90c455b7be1a721bf9bc2af5..dd9cc8d9c4a3c46db9328721912a1959f404f124 100644
(file)
--- 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') {