Don't break the UI when something goes wrong

This commit is contained in:
Travis Ralston 2018-12-13 14:45:08 -07:00
parent a969237dc0
commit 5f434cd31c
3 changed files with 28 additions and 16 deletions

View file

@ -343,7 +343,10 @@ module.exports = React.createClass({
}
} catch (e) {
console.error(e);
throw e;
this.setState({
findingHomeserver: false,
discoveryError: _t("Unknown error discovering homeserver"),
});
}
},