mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 01:09:56 +08:00
Fix wrong warn message
This commit is contained in:
parent
211fcf6793
commit
cee6d00859
@ -73,7 +73,7 @@ function! s:write_to_config(config) abort
|
|||||||
let g:_spacevim_global_config_path = global_dir . 'init.toml'
|
let g:_spacevim_global_config_path = global_dir . 'init.toml'
|
||||||
let cf = global_dir . 'init.toml'
|
let cf = global_dir . 'init.toml'
|
||||||
if filereadable(cf)
|
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
|
return
|
||||||
endif
|
endif
|
||||||
let dir = expand(fnamemodify(cf, ':p:h'))
|
let dir = expand(fnamemodify(cf, ':p:h'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user