refactor: maybeInitDefaultPortals no longer uses ErrTuples
This commit is contained in:
parent
b7bfbcc3cf
commit
6449579e0a
10
src/index.ts
10
src/index.ts
|
@ -28,10 +28,14 @@ log("init", "Lume Web Kernel v" + KERNEL_VERSION + "-" + KERNEL_DISTRO);
|
||||||
*/
|
*/
|
||||||
setActivePortalMasterKey(activeKey);
|
setActivePortalMasterKey(activeKey);
|
||||||
|
|
||||||
let [, portalLoadErr] = maybeInitDefaultPortals();
|
let portalLoadErr = false;
|
||||||
if (portalLoadErr) {
|
|
||||||
let err = addContextToErr(portalLoadErr, "unable to init portals");
|
try {
|
||||||
|
maybeInitDefaultPortals();
|
||||||
|
} catch (e) {
|
||||||
|
let err = addContextToErr(e, "unable to init portals");
|
||||||
logErr(err);
|
logErr(err);
|
||||||
|
portalLoadErr = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!portalLoadErr) {
|
if (!portalLoadErr) {
|
||||||
|
|
Loading…
Reference in New Issue