summaryrefslogtreecommitdiff
path: root/frontend/src/components/DeckyErrorBoundary.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/DeckyErrorBoundary.tsx')
-rw-r--r--frontend/src/components/DeckyErrorBoundary.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/src/components/DeckyErrorBoundary.tsx b/frontend/src/components/DeckyErrorBoundary.tsx
index 6fe234b7..152e0f09 100644
--- a/frontend/src/components/DeckyErrorBoundary.tsx
+++ b/frontend/src/components/DeckyErrorBoundary.tsx
@@ -32,8 +32,9 @@ const DeckyErrorBoundary: FunctionComponent<DeckyErrorBoundaryProps> = ({ error,
const [debugAllowed, setDebugAllowed] = useState<boolean>(true);
// Intentionally doesn't use DeckyState.
const [versionInfo, setVersionInfo] = useState<VerInfo>();
- const [errorSource, wasCausedByPlugin] = getLikelyErrorSourceFromValveReactError(error);
+ const [errorSource, wasCausedByPlugin, shouldReportToValve] = getLikelyErrorSourceFromValveReactError(error);
useEffect(() => {
+ if (!shouldReportToValve) DeckyPluginLoader.errorBoundaryHook.temporarilyDisableReporting();
DeckyPluginLoader.updateVersion().then(setVersionInfo);
}, []);
return (
@@ -64,7 +65,7 @@ const DeckyErrorBoundary: FunctionComponent<DeckyErrorBoundaryProps> = ({ error,
userSelect: 'auto',
}}
>
- ⚠️ An error occured rendering this content.
+ ⚠️ An error occured while rendering this content.
</h1>
<pre style={{}}>
<code>