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:
1 file changed
+1
-1
@@ -187,7 +187,7 @@ export class ExportConfigModal extends Modal {
|
|||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to load templates:', error);
|
console.error('Failed to load templates:', error);
|
||||||
new Notice('Failed to load available templates');
|
new Notice(`Failed to load available templates: ${error.message}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user