mirror of https://github.com/laurent22/joplin.git
Desktop: Fixes #1970: Display error message when notes cannot be exported
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