diff options
author | Daniel Hahler <git@thequod.de> | 2017-01-08 16:42:35 +0100 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2017-01-08 23:26:47 +0100 |
commit | 7db0017f4e5bff4b31e2b665ebd80291a33e97d1 (patch) | |
tree | 47503bd19d4d0082d58ca5eb8cb862cf892617ae | |
parent | adf32e14033ebfafb1910410058ec7453e40e54f (diff) | |
download | rneovim-7db0017f4e5bff4b31e2b665ebd80291a33e97d1.tar.gz rneovim-7db0017f4e5bff4b31e2b665ebd80291a33e97d1.tar.bz2 rneovim-7db0017f4e5bff4b31e2b665ebd80291a33e97d1.zip |
healthcheck: s:check_python: only report latest with good response
-rw-r--r-- | runtime/autoload/health/provider.vim | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/runtime/autoload/health/provider.vim b/runtime/autoload/health/provider.vim index 81fc7ed4d1..58098b08f9 100644 --- a/runtime/autoload/health/provider.vim +++ b/runtime/autoload/health/provider.vim @@ -393,14 +393,12 @@ function! s:check_python(version) abort endif if s:is_bad_response(latest) - call health#report_warn('Unable to contact PyPI.') + call health#report_warn('Could not contact PyPI to get latest version.') call health#report_error('HTTP request failed: '.latest) - endif - - if s:is_bad_response(status) + elseif s:is_bad_response(status) call health#report_warn(printf('Latest %s-neovim is NOT installed: %s', \ python_bin_name, latest)) - elseif !s:is_bad_response(latest) !s:is_bad_response(current) + elseif !s:is_bad_response(current) call health#report_ok(printf('Latest %s-neovim is installed: %s', \ python_bin_name, latest)) endif |