mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Desktop: Fixes #1970: Display error message when notes cannot be exported
This commit is contained in:
parent
6be36ffe17
commit
8ef5c96cb6
@ -36,9 +36,13 @@ class InteropServiceHelper {
|
||||
if (options.sourceNoteIds) exportOptions.sourceNoteIds = options.sourceNoteIds;
|
||||
|
||||
const service = new InteropService();
|
||||
const result = await service.export(exportOptions);
|
||||
|
||||
console.info('Export result: ', result);
|
||||
try {
|
||||
const result = await service.export(exportOptions);
|
||||
console.info('Export result: ', result);
|
||||
} catch (error) {
|
||||
bridge().showErrorMessageBox(_('Could not export notes: %s', error.message));
|
||||
}
|
||||
|
||||
dispatch({
|
||||
type: 'WINDOW_COMMAND',
|
||||
|
Loading…
Reference in New Issue
Block a user