mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 09:00:06 +08:00
fix(log): silent warning
This commit is contained in:
parent
11e5a4f4b3
commit
efa65d6537
@ -90,7 +90,7 @@ function! s:self.warn(msg, ...) abort
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
let log = self._build_msg(a:msg, 2)
|
let log = self._build_msg(a:msg, 2)
|
||||||
if (!self.silent && self.verbose >= 2) || get(a:000, 0, 0) == 1
|
if (!self.silent && self.verbose >= 2) || get(a:000, 0, 1) == 0
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
echom log
|
echom log
|
||||||
echohl None
|
echohl None
|
||||||
|
@ -86,7 +86,7 @@ function! SpaceVim#layers#load(layer, ...) abort
|
|||||||
call SpaceVim#logger#warn('Failed to load '
|
call SpaceVim#logger#warn('Failed to load '
|
||||||
\ . a:layer
|
\ . a:layer
|
||||||
\ . ' layer, read :h SpaceVim-layer-' . a:layer
|
\ . ' layer, read :h SpaceVim-layer-' . a:layer
|
||||||
\ . ' for more info!', 0)
|
\ . ' for more info!')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
if a:0 == 1 && type(a:1) == 4
|
if a:0 == 1 && type(a:1) == 4
|
||||||
|
Loading…
Reference in New Issue
Block a user