Skip to content

Commit

Permalink
Desktop: Fixes #1970: Display error message when notes cannot be expo…
Browse files Browse the repository at this point in the history
…rted
  • Loading branch information
laurent22 committed Oct 11, 2019
1 parent 6be36ff commit 8ef5c96
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ElectronClient/app/InteropServiceHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 8ef5c96

Please sign in to comment.