diff options
Diffstat (limited to 'editor.py')
-rw-r--r-- | editor.py | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -104,9 +104,7 @@ least one of these before using this command.""", # noqa: E501 | |||
104 | try: | 104 | try: |
105 | rc = subprocess.Popen(args, shell=shell).wait() | 105 | rc = subprocess.Popen(args, shell=shell).wait() |
106 | except OSError as e: | 106 | except OSError as e: |
107 | raise EditorError( | 107 | raise EditorError(f"editor failed, {str(e)}: {editor} {path}") |
108 | "editor failed, %s: %s %s" % (str(e), editor, path) | ||
109 | ) | ||
110 | if rc != 0: | 108 | if rc != 0: |
111 | raise EditorError( | 109 | raise EditorError( |
112 | "editor failed with exit status %d: %s %s" | 110 | "editor failed with exit status %d: %s %s" |