Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autoload/TagHighlight/Libraries.vim
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function! TagHighlight#Libraries#FindUserLibraries()
\ 'Path': fnamemodify(library_path, '%:p'),
\ }]
else
TagHLDebug("Cannot load user library " . library, "Error")
call TagHLDebug("Cannot load user library " . library, "Error")
endif
endfor
return libraries_to_load
Expand Down
9 changes: 6 additions & 3 deletions plugin/TagHighlight/module/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from __future__ import print_function
import os
import re
import sys
from .utilities import GenerateValidKeywordRange, IsValidKeyword
from .debug import Debug

Expand Down Expand Up @@ -160,8 +161,9 @@ def CreateTypesFile(options, language, tags):
# The resulting file will then work with any Vim (Windows, Linux, Cygwin etc)
fh = open(filename, 'wb')
except IOError:
Debug("ERROR: Couldn't create {file}\n".format(file=outfile), "Error")
sys.exit(1)
print("ERROR: Couldn't create {file}\n".format(file=filename), "Error")
Debug("ERROR: Couldn't create {file}\n".format(file=filename), "Error")
#sys.exit(1)

try:
for line in vimtypes_entries:
Expand All @@ -172,7 +174,8 @@ def CreateTypesFile(options, language, tags):
fh.write('echoerr "Types generation error"\n'.encode('ascii'))
fh.write('\n'.encode('ascii'))
except IOError:
Debug("ERROR: Couldn't write {file} contents\n".format(file=outfile), "Error")
print("ERROR: Couldn't write {file} contents\n".format(file=filename), "Error")
Debug("ERROR: Couldn't write {file} contents\n".format(file=filename), "Error")
sys.exit(1)
finally:
fh.close()