Skip to content

Commit 0bbc276

Browse files
committed
fix: resolve build issues in error handling
1 parent b0111b2 commit 0bbc276

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/engine/MacroChoiceEngine.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import type { IUserScript } from "../types/macros/IUserScript";
55
import type { IObsidianCommand } from "../types/macros/IObsidianCommand";
66
import { log } from "../logger/logManager";
77
import { handleError } from "../utils/errorUtils";
8+
import { ErrorLevel } from "../logger/errorLevel";
89
import { CommandType } from "../types/macros/CommandType";
910
import { QuickAddApi } from "../quickAddApi";
1011
import type { ICommand } from "../types/macros/ICommand";
@@ -246,7 +247,7 @@ export class MacroChoiceEngine extends QuickAddChoiceEngine {
246247

247248
await this.userScriptDelegator(obj[selected]);
248249
} catch (err) {
249-
handleError(err, "Error in script object handling", "Log");
250+
handleError(err, "Error in script object handling", ErrorLevel.Log);
250251
}
251252
}
252253

@@ -353,4 +354,4 @@ export class MacroChoiceEngine extends QuickAddChoiceEngine {
353354
this.choiceExecutor.variables.set(key, aiOutputVariables[key]);
354355
}
355356
}
356-
}
357+
}

src/engine/TemplateEngine.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
} from "../utilityObsidian";
1010
import GenericSuggester from "../gui/GenericSuggester/genericSuggester";
1111
import { FILE_NUMBER_REGEX, MARKDOWN_FILE_EXTENSION_REGEX } from "../constants";
12-
import { log } from "../logger/logManager";
1312
import { handleError } from "../utils/errorUtils";
1413
import type { IChoiceExecutor } from "../IChoiceExecutor";
1514

0 commit comments

Comments
 (0)