mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-09 02:14:46 +08:00
Fix error messages
This commit is contained in:
4
plug.vim
4
plug.vim
@@ -271,7 +271,7 @@ function! plug#load(...)
|
|||||||
return s:err('Argument missing: plugin name(s) required')
|
return s:err('Argument missing: plugin name(s) required')
|
||||||
endif
|
endif
|
||||||
if !exists('g:plugs')
|
if !exists('g:plugs')
|
||||||
return s:err('plug#begin is not called')
|
return s:err('plug#begin was not called')
|
||||||
endif
|
endif
|
||||||
let unknowns = filter(copy(a:000), '!has_key(g:plugs, v:val)')
|
let unknowns = filter(copy(a:000), '!has_key(g:plugs, v:val)')
|
||||||
if !empty(unknowns)
|
if !empty(unknowns)
|
||||||
@@ -391,7 +391,7 @@ endfunction
|
|||||||
|
|
||||||
function! plug#helptags()
|
function! plug#helptags()
|
||||||
if !exists('g:plugs')
|
if !exists('g:plugs')
|
||||||
return s:err('plug#begin is not called')
|
return s:err('plug#begin was not called')
|
||||||
endif
|
endif
|
||||||
for spec in values(g:plugs)
|
for spec in values(g:plugs)
|
||||||
let docd = join([spec.dir, 'doc'], '/')
|
let docd = join([spec.dir, 'doc'], '/')
|
||||||
|
|||||||
Reference in New Issue
Block a user