mirror of
https://github.com/laurent22/joplin.git
synced 2025-02-01 19:15:01 +02:00
CLI: Display error when cannot open note with editor
This commit is contained in:
parent
1d73f0cdee
commit
f632580eed
@ -81,7 +81,9 @@ class Command extends BaseCommand {
|
||||
const termState = app().gui().termSaveState();
|
||||
|
||||
const spawnSync = require('child_process').spawnSync;
|
||||
spawnSync(editorPath, editorArgs, { stdio: 'inherit' });
|
||||
const result = spawnSync(editorPath, editorArgs, { stdio: 'inherit' });
|
||||
|
||||
if (result.error) this.stdout(_('Error opening note in editor: %s', result.error.message));
|
||||
|
||||
app().gui().termRestoreState(termState);
|
||||
app().gui().hideModalOverlay();
|
||||
|
Loading…
x
Reference in New Issue
Block a user