Catch error message from u/e ctags variants

Co-authored-by: Steven Engler <sengler@uwaterloo.ca>
This commit is contained in:
Caleb Maclennan 2020-05-29 21:55:11 +03:00
parent 92752b89ce
commit e8d127bf40
No known key found for this signature in database
GPG Key ID: 63CC496475267693

View File

@ -1367,7 +1367,7 @@ 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'
if v:shell_error || ctags_output =~? 'Warning: cannot open \(source\|input\) file'
call tagbar#debug#log('Command output:')
call tagbar#debug#log(ctags_output)
call tagbar#debug#log('Exit code: ' . v:shell_error)