Skip to content
Snippets Groups Projects
Commit cd4a055b authored by Ray Schamp's avatar Ray Schamp
Browse files

Add more information to error boundary messages

While working on the menubar, I couldn't find the source of an error. This adds more stack info to the error messages emitted by the error boundary.
parent 7eb6e327
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ class ErrorBoundary extends React.Component {
componentDidCatch (error, info) {
// Display fallback UI
this.setState({hasError: true});
log.error(`Unhandled Error: ${error}, info: ${info}`);
log.error(`Unhandled Error: ${error}\n${error.stack}\nComponent stack: ${info.componentStack}`);
analytics.event({
category: 'error',
action: 'Fatal Error',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment