mirror of
https://github.com/laurent22/joplin.git
synced 2025-04-11 11:12:03 +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;
|
if (options.sourceNoteIds) exportOptions.sourceNoteIds = options.sourceNoteIds;
|
||||||
|
|
||||||
const service = new InteropService();
|
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({
|
dispatch({
|
||||||
type: 'WINDOW_COMMAND',
|
type: 'WINDOW_COMMAND',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user