diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-07-04 18:10:02 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-07-04 18:10:02 +0200 |
commit | d0a3a2b094f4057d8584e82deffb183a9b03b10d (patch) | |
tree | ee57a0ff58adcfeef8f54954d83a68e64b49a3af /src/ws | |
parent | 8db5ff97ffe34aa42f71b5c8aebfa0878e5fde89 (diff) |
Show errors in web client as alert boxes.
Diffstat (limited to 'src/ws')
-rw-r--r-- | src/ws/proto.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ws/proto.js b/src/ws/proto.js index d21908e..e4834b0 100644 --- a/src/ws/proto.js +++ b/src/ws/proto.js @@ -105,6 +105,13 @@ try if(msgstr[c] != ' ' || instring == true) msg[idx] += msgstr[c]; } + if(msg[0] == "error") + { + alert("Error(#" + unescape(msg[1]) + "): " + unescape(msg[2])); + f++; + continue; + } + var subscribeid = msg[0]; var cmd = msg[1]; var id = msg[2]; |