From a2554fff2204586c61c9bc33f638ccdf562e0eb8 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Mon, 19 Oct 2020 14:12:09 -0400 Subject: [PATCH] pad: Pop up an error message dialog box upon socket.io error --- src/static/js/pad.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/static/js/pad.js b/src/static/js/pad.js index 1768f63c..36abf8a7 100644 --- a/src/static/js/pad.js +++ b/src/static/js/pad.js @@ -220,6 +220,7 @@ function handshake() pad.collabClient.setStateIdle(); pad.collabClient.setIsPendingRevision(true); } + throw new Error(`socket.io connection error: ${JSON.stringify(error)}`); }); var initalized = false;