Mercurial > vim-gutentags
diff autoload/gutentags/ctags.vim @ 148:b178f2251982
Only set `v:errmsg` when we throw an actual error.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 07 Dec 2016 21:20:50 -0800 |
parents | 7bc4df0225d1 |
children | bba76de4371a |
line wrap: on
line diff
--- a/autoload/gutentags/ctags.vim Sat Nov 26 16:33:41 2016 -0800 +++ b/autoload/gutentags/ctags.vim Wed Dec 07 21:20:50 2016 -0800 @@ -44,7 +44,8 @@ if l:tags_file_exists && g:gutentags_ctags_check_tagfile let l:first_lines = readfile(a:tags_file, '', 1) if len(l:first_lines) == 0 || stridx(l:first_lines[0], '!_TAG_') != 0 - call gutentags#throw("File ".a:tags_file." doesn't appear to be ". + call gutentags#throwerr( + \"File ".a:tags_file." doesn't appear to be ". \"a ctags file. Please delete it and run ". \":GutentagsUpdate!.") return