mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-12 01:27:53 +08:00
fix(ctags): skip command when failed to create dir
This commit is contained in:
parent
e9062da7bd
commit
231623f8fb
2
bundle/gtags.vim/autoload/ctags.vim
vendored
2
bundle/gtags.vim/autoload/ctags.vim
vendored
@ -71,6 +71,8 @@ function! ctags#update(...) abort
|
|||||||
if !isdirectory(dir)
|
if !isdirectory(dir)
|
||||||
if !mkdir(dir, 'p')
|
if !mkdir(dir, 'p')
|
||||||
call s:LOGGER.warn('failed to create data databases dir:' . dir)
|
call s:LOGGER.warn('failed to create data databases dir:' . dir)
|
||||||
|
" if failed to create databases, then do not run ctags command.
|
||||||
|
return
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
if isdirectory(dir)
|
if isdirectory(dir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user