Prechádzať zdrojové kódy

Better error message when git executable is not found

Related: #392, #52
Junegunn Choi 10 rokov pred
rodič
commit
799e20a682
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      plug.vim

+ 1 - 1
plug.vim

@@ -115,7 +115,7 @@ endfunction
 function! s:define_commands()
   command! -nargs=+ -bar Plug call s:add(<args>)
   if !executable('git')
-    return s:err('`git` executable not found. vim-plug requires git.')
+    return s:err('`git` executable not found. Most commands will not be available. To suppress this message, prepend `silent!` to `call plug#begin(...)`.')
   endif
   command! -nargs=* -bar -bang -complete=customlist,s:names PlugInstall call s:install(<bang>0, [<f-args>])
   command! -nargs=* -bar -bang -complete=customlist,s:names PlugUpdate  call s:update(<bang>0, [<f-args>])