Skip to content

Commit 3600cd3

Browse files
committed
Add error handling to gotConnected.
1 parent 8c21ede commit 3600cd3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

static/galene.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,12 @@ function setConnected(connected) {
324324
function gotConnected() {
325325
setConnected(true);
326326
let up = getUserPass();
327-
this.join(group, up.username, up.password);
327+
try {
328+
this.join(group, up.username, up.password);
329+
} catch(e) {
330+
console.error(e);
331+
displayError(e);
332+
}
328333
}
329334

330335
/**

0 commit comments

Comments
 (0)