1
0
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:
wsdjeg 2023-03-30 21:45:22 +08:00
parent e9062da7bd
commit 231623f8fb

@ -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)