refactor: maybeInitDefaultPortals no longer uses ErrTuples

This commit is contained in:
Derrick Hammer 2023-09-08 13:16:01 -04:00
parent b7bfbcc3cf
commit 6449579e0a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 7 additions and 3 deletions

View File

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