1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:10:05 +08:00

Fix wrong warn message

This commit is contained in:
Shidong Wang 2021-02-15 22:58:26 +08:00
parent 211fcf6793
commit cee6d00859

View File

@ -73,7 +73,7 @@ function! s:write_to_config(config) abort
let g:_spacevim_global_config_path = global_dir . 'init.toml'
let cf = global_dir . 'init.toml'
if filereadable(cf)
call SpaceVim#logger#warn('Failed to generate config file, it is not readable: ' . cf)
call SpaceVim#logger#warn('The file already exists:' . cf)
return
endif
let dir = expand(fnamemodify(cf, ':p:h'))