diff options
| author | 2020-10-08 23:32:02 +0100 | |
|---|---|---|
| committer | 2020-10-08 23:32:02 +0100 | |
| commit | 896230b7f993d61ee7c6b43fe386c048a6b1fca9 (patch) | |
| tree | c2d951380f7f3f3939f4108e98258e68ce8ae657 /src | |
| parent | Enable Sentry in production (diff) | |
Render the Sentry error boundary
Diffstat (limited to 'src')
| -rw-r--r-- | src/index.tsx | 10 | 
1 files changed, 9 insertions, 1 deletions
| diff --git a/src/index.tsx b/src/index.tsx index 0198756..50385ea 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -31,7 +31,15 @@ console.log("%cCome join us on Discord! https://discord.gg/python", `font-size:  ReactDOM.render(    <React.StrictMode> -    <App /> +    <Sentry.ErrorBoundary +      fallback={<p>An error has occurred with Python Discord Forms. Please let us know in the Discord server at <a href="https://discord.gg/python">discord.gg/python</a></p>} +      showDialog={true} +      dialogOptions={{ +        title: "You've found a bug in PyDis forms!" +      }} +    > +      <App /> +    </Sentry.ErrorBoundary>    </React.StrictMode>,    document.getElementById('root')  ); | 
