From 9dad38c0f8b4173622497519cfde4b976482959b Mon Sep 17 00:00:00 2001 From: Amaury Martiny Date: Tue, 3 Jul 2018 17:10:29 +0200 Subject: [PATCH] Debug message on error --- packages/fether-react/src/App/App.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/fether-react/src/App/App.js b/packages/fether-react/src/App/App.js index fc8a44f5..7ebcb74a 100644 --- a/packages/fether-react/src/App/App.js +++ b/packages/fether-react/src/App/App.js @@ -14,6 +14,7 @@ import { import { inject, observer } from 'mobx-react'; import Accounts from '../Accounts'; +import Debug from '../utils/debug'; import Onboarding from '../Onboarding'; import Overlay from '../Overlay'; import Send from '../Send'; @@ -21,6 +22,7 @@ import { STATUS } from '../stores/healthStore'; import Tokens from '../Tokens'; import Whitelist from '../Whitelist'; +const debug = Debug('App'); // Use MemoryRouter for production viewing in file:// protocol // https://github.com/facebook/create-react-app/issues/3591 const Router = @@ -29,6 +31,10 @@ const Router = @inject('healthStore', 'onboardingStore') @observer class App extends Component { + componentDidCatch (err) { + debug(err.message); + } + render () { return ( -- GitLab