aboutsummaryrefslogtreecommitdiff
path: root/src/components/Updater.tsx
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-11-15 17:29:31 +0100
committerVendicated <vendicated@riseup.net>2022-11-15 17:29:31 +0100
commitb30508aef8cd19625640ee650b58b557bb3fdd24 (patch)
treea31ffe5d96f88e42c1d48881f4005a483618bb61 /src/components/Updater.tsx
parenteabbf7d9bd9c2d011056918d8e23c5938c8d4f9b (diff)
downloadVencord-b30508aef8cd19625640ee650b58b557bb3fdd24.tar.gz
Vencord-b30508aef8cd19625640ee650b58b557bb3fdd24.tar.bz2
Vencord-b30508aef8cd19625640ee650b58b557bb3fdd24.zip
better handling for settings ui errors
Diffstat (limited to 'src/components/Updater.tsx')
-rw-r--r--src/components/Updater.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/Updater.tsx b/src/components/Updater.tsx
index a11d65b..8abdf28 100644
--- a/src/components/Updater.tsx
+++ b/src/components/Updater.tsx
@@ -24,6 +24,7 @@ import { Alerts, Button, Card, Forms, Margins, Parser, React, Toasts } from "../
import ErrorBoundary from "./ErrorBoundary";
import { ErrorCard } from "./ErrorCard";
import { Flex } from "./Flex";
+import { handleComponentFailed } from "./handleComponentFailed";
import { Link } from "./Link";
function withDispatcher(dispatcher: React.Dispatch<React.SetStateAction<boolean>>, action: () => any) {
@@ -209,4 +210,7 @@ function Updater() {
);
}
-export default IS_WEB ? null : ErrorBoundary.wrap(Updater);
+export default IS_WEB ? null : ErrorBoundary.wrap(Updater, {
+ message: "Failed to render the Updater. If this persists, try using the installer to reinstall!",
+ onError: handleComponentFailed,
+});