1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 19:40:27 +01:00

Always log ctags output when execution fails

This commit is contained in:
Jan Larres
2015-02-16 18:49:07 +13:00
parent 00dfa82b00
commit a284cd0091

View File

@@ -2204,6 +2204,8 @@ function! s:ExecuteCtagsOnFile(fname, realfname, typeinfo) abort
let ctags_output = s:ExecuteCtags(ctags_cmd)
if v:shell_error || ctags_output =~ 'Warning: cannot open source file'
call s:debug('Command output:')
call s:debug(ctags_output)
" Only display an error message if the Tagbar window is open and we
" haven't seen the error before.
if bufwinnr("__Tagbar__") != -1 &&
@@ -2212,8 +2214,6 @@ function! s:ExecuteCtagsOnFile(fname, realfname, typeinfo) abort
call s:warning('Tagbar: Could not execute ctags for ' . a:realfname . '!')
echomsg 'Executed command: "' . ctags_cmd . '"'
if !empty(ctags_output)
call s:debug('Command output:')
call s:debug(ctags_output)
echomsg 'Command output:'
for line in split(ctags_output, '\n')
echomsg line