web: handle errors during bootstrapping

This commit is contained in:
Abdullah Atta
2024-06-07 10:30:16 +05:00
parent 039709822c
commit ef93ecc481

View File

@@ -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={{