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);
|
||||
|
||||
let [, portalLoadErr] = maybeInitDefaultPortals();
|
||||
if (portalLoadErr) {
|
||||
let err = addContextToErr(portalLoadErr, "unable to init portals");
|
||||
let portalLoadErr = false;
|
||||
|
||||
try {
|
||||
maybeInitDefaultPortals();
|
||||
} catch (e) {
|
||||
let err = addContextToErr(e, "unable to init portals");
|
||||
logErr(err);
|
||||
portalLoadErr = true;
|
||||
}
|
||||
|
||||
if (!portalLoadErr) {
|
||||
|
|
Loading…
Reference in New Issue