aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-10-08 23:32:02 +0100
committerGravatar Joe Banks <[email protected]>2020-10-08 23:32:02 +0100
commit896230b7f993d61ee7c6b43fe386c048a6b1fca9 (patch)
treec2d951380f7f3f3939f4108e98258e68ce8ae657
parentEnable Sentry in production (diff)
Render the Sentry error boundary
-rw-r--r--src/index.tsx10
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')
);