diff --git a/packages/fether-react/src/App/App.js b/packages/fether-react/src/App/App.js index fc8a44f541c2680df740e9766da6b81a92a8f059..7ebcb74ac86623484b398dc991dc44b57f1345f2 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 (