mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-25 01:51:07 +08:00
Print exception from post-update hook with : prefix
This commit is contained in:
6
plug.vim
6
plug.vim
@@ -809,7 +809,11 @@ function! s:do(pull, force, todo)
|
||||
if type == s:TYPE.string
|
||||
if spec.do[0] == ':'
|
||||
call s:load_plugin(spec)
|
||||
execute spec.do[1:]
|
||||
try
|
||||
execute spec.do[1:]
|
||||
catch
|
||||
let error = v:exception
|
||||
endtry
|
||||
if !s:plug_window_exists()
|
||||
cd -
|
||||
throw 'Warning: vim-plug was terminated by the post-update hook of '.name
|
||||
|
||||
Reference in New Issue
Block a user