1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Move error logging to where it is first caught.

This commit is contained in:
Richard Lewis
2017-08-18 11:51:32 +01:00
parent 95d1c3746e
commit 96900e76a0

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') }