Move error logging to where it is first caught.

pull/21833/head
Richard Lewis 2017-08-18 11:51:32 +01:00
parent 95d1c3746e
commit 96900e76a0
1 changed files with 1 additions and 1 deletions

View File

@ -48,6 +48,7 @@ export default class ManageIntegsButton extends React.Component {
this.forceUpdate();
}, (err) => {
this.setState({ scalarError: err});
console.error(err);
});
}
}
@ -83,7 +84,6 @@ export default class ManageIntegsButton extends React.Component {
let integrationsError;
if (this.scalarClient !== null) {
if (this.state.showIntegrationsError && this.state.scalarError) {
console.error(this.state.scalarError);
integrationsError = (
<span className="mx_RoomSettings_integrationsButton_errorPopup">
{ _t('Could not connect to the integration server') }