From cfb5504341f6b7affd19a2180673f1d2bdc54cfe Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 16 Jan 2021 12:01:28 -0800 Subject: [PATCH] Add hidden command to send test error to Sentry I haven't seen anything come in from prod yet, and it's hard to trigger one, maybe because the integration is React-specific? Or maybe it's... not working :p I can send errors from dev! But just haven't _seeeen_ a prod error come in yet. Maybe we're just squeaky clean tho :3 --- src/app/HomePage.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/HomePage.js b/src/app/HomePage.js index 8015f1e..8714f9a 100644 --- a/src/app/HomePage.js +++ b/src/app/HomePage.js @@ -36,6 +36,12 @@ function HomePage() { const [previewState, setPreviewState] = React.useState(null); + React.useEffect(() => { + if (window.location.href.includes("send-test-error-for-sentry")) { + throw new Error("Test error for Sentry"); + } + }); + return (