Skip to content

Commit

Permalink
Add error handling to gotConnected.
Browse files Browse the repository at this point in the history
  • Loading branch information
jech committed Oct 29, 2021
1 parent 8c21ede commit 3600cd3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion static/galene.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

/**
Expand Down

0 comments on commit 3600cd3

Please sign in to comment.