Fix no_jedi_warning: display actual error

Never really worked as intended in 676b378.
Ref: https://github.com/davidhalter/jedi-vim/issues/460
This commit is contained in:
Daniel Hahler
2016-03-18 23:04:23 +01:00
parent 625c568b12
commit df39189578

View File

@@ -78,12 +78,11 @@ def vim_eval(string):
def no_jedi_warning(error=None):
msg = "Please install Jedi if you want to use jedi-vim."
vim.command('echohl WarningMsg')
vim.command('echom "Please install Jedi if you want to use jedi-vim."')
if error:
msg = '{0} The error was: {1}'.format(msg, error)
vim.command('echohl WarningMsg'
'| echom "Please install Jedi if you want to use jedi-vim."'
'| echohl None')
vim.command('echom "The error was: {0}"'.format(error))
vim.command('echohl None')
def echo_highlight(msg):