Merge pull request #10185 from bcoca/valut_editor_missing_err

better missing editor message
This commit is contained in:
Brian Coca 2015-02-09 18:16:57 -05:00
commit 75d3c6b104

View file

@ -203,7 +203,10 @@ class VaultEditor(object):
self.write_data(existing_data, tmp_path) self.write_data(existing_data, tmp_path)
# drop the user into an editor on the tmp file # drop the user into an editor on the tmp file
try:
call(self._editor_shell_command(tmp_path)) 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) tmpdata = self.read_data(tmp_path)
# create new vault # create new vault