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
This commit is contained in:
AlexKucera committed 2025-10-24 16:06:49 +02:00
1 parent 20c27b45ce
commit d50f11269b
1 file changed
+2 -2
+2 -2
View File
@@ -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 {