From a284cd009104b5c9b64a378cd98fdf4993c1689e Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Mon, 16 Feb 2015 18:49:07 +1300 Subject: [PATCH] Always log ctags output when execution fails --- autoload/tagbar.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index a3baca9..f43f4e8 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -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