From 3cea6894230f9f6f61c6c01686ab41fa90d33140 Mon Sep 17 00:00:00 2001 From: Eirik Hoem Date: Sun, 26 Nov 2023 17:53:56 +0100 Subject: [PATCH] Do not pull in process, this will be used in a browser setting --- src/converters/logseq/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/converters/logseq/index.ts b/src/converters/logseq/index.ts index 278a977..5c92299 100644 --- a/src/converters/logseq/index.ts +++ b/src/converters/logseq/index.ts @@ -1,4 +1,3 @@ -import { exit } from 'process'; import { NodeType, TanaIntermediateAttribute, @@ -586,8 +585,7 @@ export class LogseqConverter implements IConverter { } if (node.type !== 'field') { - console.error('Trying to get attr def for non-field node'); - exit(); + throw new Error('Trying to get attr def for non-field node'); } let intermediateAttr: TanaIntermediateAttribute | undefined = this.attrMap.get(node.name);