Move error logging to where it is first caught.
parent
95d1c3746e
commit
96900e76a0
|
@ -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') }
|
||||||
|
|
Loading…
Reference in New Issue