From 96900e76a0637adb5b944eb47f24f67584614875 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Fri, 18 Aug 2017 11:51:32 +0100 Subject: [PATCH] Move error logging to where it is first caught. --- src/components/views/elements/ManageIntegsButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/elements/ManageIntegsButton.js b/src/components/views/elements/ManageIntegsButton.js index 3ceda73074..8def6379ec 100644 --- a/src/components/views/elements/ManageIntegsButton.js +++ b/src/components/views/elements/ManageIntegsButton.js @@ -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 = ( { _t('Could not connect to the integration server') }