Improves error reporting for template loading.

Adds error message to the notice when loading templates fails, providing more context for debugging.
This commit is contained in:
AlexKucera committed 2025-09-04 14:36:41 +02:00
1 parent e48af55635
commit c872a56bc2
1 file changed
+1 -1
+1 -1
View File
@@ -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}`);
}
}