Throw v:shell_error when system() output is empty
This commit is contained in:
parent
681ca2d43a
commit
ff4cbe23c0
1 changed files with 1 additions and 1 deletions
2
plug.vim
2
plug.vim
|
@ -1044,7 +1044,7 @@ function! s:upgrade()
|
|||
if executable('curl')
|
||||
let output = system(printf('curl -fLo %s %s', s:shellesc(new), s:plug_source))
|
||||
if v:shell_error
|
||||
throw get(split(output, '\n'), -1, '')
|
||||
throw get(split(output, '\n'), -1, v:shell_error)
|
||||
endif
|
||||
elseif has('ruby')
|
||||
ruby << EOF
|
||||
|
|
Loading…
Reference in a new issue