From c872a56bc2368517a068d384c659cd66509d385f Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Thu, 4 Sep 2025 14:36:41 +0200 Subject: [PATCH] Improves error reporting for template loading. Adds error message to the notice when loading templates fails, providing more context for debugging. --- src/ui/modal/ExportConfigModal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/modal/ExportConfigModal.ts b/src/ui/modal/ExportConfigModal.ts index b4c3dc5..2000436 100644 --- a/src/ui/modal/ExportConfigModal.ts +++ b/src/ui/modal/ExportConfigModal.ts @@ -187,7 +187,7 @@ export class ExportConfigModal extends Modal { } } catch (error) { console.error('Failed to load templates:', error); - new Notice('Failed to load available templates'); + new Notice(`Failed to load available templates: ${error.message}`); } }