You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Move error logging to where it is first caught.
This commit is contained in:
@@ -48,6 +48,7 @@ export default class ManageIntegsButton extends React.Component {
|
|||||||
this.forceUpdate();
|
this.forceUpdate();
|
||||||
}, (err) => {
|
}, (err) => {
|
||||||
this.setState({ scalarError: err});
|
this.setState({ scalarError: err});
|
||||||
|
console.error(err);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -83,7 +84,6 @@ export default class ManageIntegsButton extends React.Component {
|
|||||||
let integrationsError;
|
let integrationsError;
|
||||||
if (this.scalarClient !== null) {
|
if (this.scalarClient !== null) {
|
||||||
if (this.state.showIntegrationsError && this.state.scalarError) {
|
if (this.state.showIntegrationsError && this.state.scalarError) {
|
||||||
console.error(this.state.scalarError);
|
|
||||||
integrationsError = (
|
integrationsError = (
|
||||||
<span className="mx_RoomSettings_integrationsButton_errorPopup">
|
<span className="mx_RoomSettings_integrationsButton_errorPopup">
|
||||||
{ _t('Could not connect to the integration server') }
|
{ _t('Could not connect to the integration server') }
|
||||||
|
|||||||
Reference in New Issue
Block a user