Commit 75d3c6b1 by Brian Coca

Merge pull request #10185 from bcoca/valut_editor_missing_err

better missing editor message
parents 2f2fe734 8b7dc6bb
......@@ -203,7 +203,10 @@ class VaultEditor(object):
self.write_data(existing_data, tmp_path)
# drop the user into an editor on the tmp file
call(self._editor_shell_command(tmp_path))
try:
call(self._editor_shell_command(tmp_path))
except OSError, e:
raise Exception("Failed to open editor (%s): %s" % (self._editor_shell_command(tmp_path)[0],str(e)))
tmpdata = self.read_data(tmp_path)
# create new vault
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment