diff options
author | Vendicated <vendicated@riseup.net> | 2022-11-15 17:29:31 +0100 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-11-15 17:29:31 +0100 |
commit | b30508aef8cd19625640ee650b58b557bb3fdd24 (patch) | |
tree | a31ffe5d96f88e42c1d48881f4005a483618bb61 /src/components/Updater.tsx | |
parent | eabbf7d9bd9c2d011056918d8e23c5938c8d4f9b (diff) | |
download | Vencord-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.tsx | 6 |
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, +}); |