From cee6d00859d2e6ba8c61f403cd23b87cdb0596c2 Mon Sep 17 00:00:00 2001 From: Shidong Wang Date: Mon, 15 Feb 2021 22:58:26 +0800 Subject: [PATCH] Fix wrong warn message --- autoload/SpaceVim/custom.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/SpaceVim/custom.vim b/autoload/SpaceVim/custom.vim index ade1d335c..d2cb4b0d6 100644 --- a/autoload/SpaceVim/custom.vim +++ b/autoload/SpaceVim/custom.vim @@ -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'))