Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: handle errors during bootstrapping

Abdullah Attaef93ecc48149
diff --git a/apps/web/src/root.tsx b/apps/web/src/root.tsx
index d28ea0a45..361881948 100644
--- a/apps/web/src/root.tsx
+++ b/apps/web/src/root.tsx
@@ -106,7 +106,12 @@ function RouteWrapper(props: {
return Component;
}, [component, path]);
- if (result.status !== "fulfilled")
+ if (result.status === "rejected") {
+ throw result.reason instanceof Error
+ ? result.reason
+ : new Error(result.reason);
+ }
+ if (result.status === "pending")
return (
<div
style={{