summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-07-04 18:10:02 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2020-07-04 18:10:02 +0200
commitd0a3a2b094f4057d8584e82deffb183a9b03b10d (patch)
treeee57a0ff58adcfeef8f54954d83a68e64b49a3af
parent8db5ff97ffe34aa42f71b5c8aebfa0878e5fde89 (diff)
Show errors in web client as alert boxes.
-rw-r--r--src/ws/proto.js7
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];