diff --git a/src/components/ErrorBoundary.tsx b/src/components/ErrorBoundary.tsx index e13ebe5..a37ca93 100644 --- a/src/components/ErrorBoundary.tsx +++ b/src/components/ErrorBoundary.tsx @@ -1,5 +1,7 @@ import * as React from 'react'; +import PrettyError from '../widgets/PrettyError'; + class ErrorBoundary extends React.Component { state: { error?: Error; @@ -17,17 +19,7 @@ class ErrorBoundary extends React.Component { render() { if (this.state.error) { return ( -
- {this.state.error.message} -- -
- {this.state.error.stack} --
+ {props.error.message} ++ +
+ {props.error.stack} ++