From 5583d04ac0690439bdf09a641f1cfa3741e03fad Mon Sep 17 00:00:00 2001 From: Robin Tuszik Date: Wed, 11 Dec 2024 21:09:47 +0100 Subject: [PATCH] fix: Add missing catch block and error handling in classifyTag method --- src/main.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 3e707ff..3adb218 100644 --- a/src/main.ts +++ b/src/main.ts @@ -187,8 +187,11 @@ export default class AutoClassifierPlugin extends Plugin { } } new Notice(`✅ ${this.manifest.name}: classified with ${resOutputs.length} tags`); + } catch (error) { + new Notice(`⛔ ${this.manifest.name}: ${error}`); + return null; + } } - }