Include Sentry tracing and additional indexes.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Button, Col, Collapse, Result, Row, Space } from "antd";
|
||||
import React from "react";
|
||||
import * as Sentry from "@sentry/electron";
|
||||
|
||||
class ErrorBoundary extends React.Component {
|
||||
constructor() {
|
||||
@@ -13,11 +14,13 @@ class ErrorBoundary extends React.Component {
|
||||
|
||||
static getDerivedStateFromError(error) {
|
||||
console.log("ErrorBoundary -> getDerivedStateFromError -> error", error);
|
||||
Sentry.captureException(error);
|
||||
return { hasErrored: true, error: error };
|
||||
}
|
||||
|
||||
componentDidCatch(error, info) {
|
||||
console.log("Exception Caught by Error Boundary.", error, info);
|
||||
Sentry.captureException(error);
|
||||
this.setState({ ...this.state, error, info });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user