Mercurial > vim-gutentags
comparison 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 |
comparison
equal
deleted
inserted
replaced
147:d566ec6cd2f7 | 148:b178f2251982 |
---|---|
42 let l:tags_file_exists = filereadable(a:tags_file) | 42 let l:tags_file_exists = filereadable(a:tags_file) |
43 | 43 |
44 if l:tags_file_exists && g:gutentags_ctags_check_tagfile | 44 if l:tags_file_exists && g:gutentags_ctags_check_tagfile |
45 let l:first_lines = readfile(a:tags_file, '', 1) | 45 let l:first_lines = readfile(a:tags_file, '', 1) |
46 if len(l:first_lines) == 0 || stridx(l:first_lines[0], '!_TAG_') != 0 | 46 if len(l:first_lines) == 0 || stridx(l:first_lines[0], '!_TAG_') != 0 |
47 call gutentags#throw("File ".a:tags_file." doesn't appear to be ". | 47 call gutentags#throwerr( |
48 \"File ".a:tags_file." doesn't appear to be ". | |
48 \"a ctags file. Please delete it and run ". | 49 \"a ctags file. Please delete it and run ". |
49 \":GutentagsUpdate!.") | 50 \":GutentagsUpdate!.") |
50 return | 51 return |
51 endif | 52 endif |
52 endif | 53 endif |