diff options
Diffstat (limited to 'alot/commands/globals.py')
-rw-r--r-- | alot/commands/globals.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index c61015f9..05ab6427 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -304,7 +304,10 @@ class ExternalCommand(Command): if self.on_success is not None: self.on_success() else: - ui.notify(ret, priority='error') + msg = "editor has exited with error code {} -- {}".format( + proc.returncode, + ret or "No stderr output") + ui.notify(msg, priority='error') if self.refocus and callerbuffer in ui.buffers: logging.info('refocussing') ui.buffer_focus(callerbuffer) |