From 3600cd3ef9ff39f6b154dbb82356a5b5db08f9a5 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Fri, 29 Oct 2021 23:37:59 +0200 Subject: [PATCH] Add error handling to gotConnected. --- static/galene.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/static/galene.js b/static/galene.js index 03db18ff..79b3e25f 100644 --- a/static/galene.js +++ b/static/galene.js @@ -324,7 +324,12 @@ function setConnected(connected) { function gotConnected() { setConnected(true); let up = getUserPass(); - this.join(group, up.username, up.password); + try { + this.join(group, up.username, up.password); + } catch(e) { + console.error(e); + displayError(e); + } } /**