mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 20:30:05 +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
|
||||
endif
|
||||
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
|
||||
echom log
|
||||
echohl None
|
||||
|
@ -86,7 +86,7 @@ function! SpaceVim#layers#load(layer, ...) abort
|
||||
call SpaceVim#logger#warn('Failed to load '
|
||||
\ . a:layer
|
||||
\ . ' layer, read :h SpaceVim-layer-' . a:layer
|
||||
\ . ' for more info!', 0)
|
||||
\ . ' for more info!')
|
||||
endif
|
||||
endif
|
||||
if a:0 == 1 && type(a:1) == 4
|
||||
|
Loading…
Reference in New Issue
Block a user