Skip to content

Commit

Permalink
Showing error if app fails to load.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakearchibald committed Oct 12, 2018
1 parent 897ddc2 commit 37b51e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export default class App extends Component<Props, State> {

import('../compress').then((module) => {
this.setState({ Compress: module.default });
}).catch(() => {
this.showError('Failed to load app');
});

// In development, persist application state across hot reloads:
Expand Down

0 comments on commit 37b51e7

Please sign in to comment.