1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Desktop: Fixes #1970: Display error message when notes cannot be exported

This commit is contained in:
Laurent Cozic 2019-10-11 20:20:12 +02:00
parent 6be36ffe17
commit 8ef5c96cb6

View File

@ -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',