소스 검색

Throw v:shell_error when system() output is empty

Junegunn Choi 11 년 전
부모
커밋
ff4cbe23c0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      plug.vim

+ 1 - 1
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