mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:30:05 +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 !mkdir(dir, 'p')
|
||||
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
|
||||
if isdirectory(dir)
|
||||
|
Loading…
Reference in New Issue
Block a user