Commit 9dad38c0 authored by Amaury Martiny's avatar Amaury Martiny
Browse files

Debug message on error

parent 254ecab9
......@@ -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 (
<Router>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment