mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
Add error handling to gotConnected.
This commit is contained in:
parent
8c21ede9d2
commit
06ee4cc30f
1 changed files with 7 additions and 1 deletions
|
@ -324,7 +324,13 @@ function setConnected(connected) {
|
|||
function gotConnected() {
|
||||
setConnected(true);
|
||||
let up = getUserPass();
|
||||
try {
|
||||
this.join(group, up.username, up.password);
|
||||
} catch(e) {
|
||||
console.error(e);
|
||||
displayError(e);
|
||||
serverConnection.close();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue