From d50f11269ba99e2090d82f4124dc3276da9433bb Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Fri, 24 Oct 2025 16:06:49 +0200 Subject: [PATCH] Improves error handling with detailed error messages Updates error notices to display specific error messages instead of static text Provides more informative feedback to users when cleanup process encounters issues --- commands/cleanupCommand.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/cleanupCommand.ts b/commands/cleanupCommand.ts index eb65b74..d066f16 100644 --- a/commands/cleanupCommand.ts +++ b/commands/cleanupCommand.ts @@ -77,9 +77,9 @@ export class CleanupCommand { if (error instanceof ApiKeyError) { new Notice('API key error. Please check your settings.'); } else if (error instanceof TextTooLongError) { - new Notice('Text is too long for processing.'); + new Notice(error.message); } else if (error instanceof ServiceUnavailableError) { - new Notice('Service temporarily unavailable. Please try again.'); + new Notice(error.message); } else if (error instanceof Error) { new Notice(`Cleanup failed: ${error.message}`); } else {