diff autoload/gutentags.vim @ 84:96bfe5c37f37

Error and abort if we'll be overwriting a non-ctags file.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 26 Aug 2015 22:21:19 -0700
parents e7e392be4141
children 0424970d81f8
line wrap: on
line diff
--- a/autoload/gutentags.vim	Wed Aug 26 21:20:37 2015 -0700
+++ b/autoload/gutentags.vim	Wed Aug 26 22:21:19 2015 -0700
@@ -256,6 +256,9 @@
     try
         call call("gutentags#".a:module."#generate",
                     \[l:proj_dir, l:tags_file, a:write_mode])
+    catch /^gutentags\:/
+        echom "Error while generating ".a:module." file:"
+        echom v:exception
     finally
         " Restore the current directory...
         execute "chdir " . fnameescape(l:prev_cwd)