Add check for missing log file (addresses #13)

This commit is contained in:
Karl Yngve Lervåg 2014-05-10 13:10:16 +02:00
parent 1fd425fd3e
commit cf459d62e7

View File

@ -116,6 +116,11 @@ function! latex#latexmk#errors()
cclose
let log = g:latex#data[b:latex.id].log()
if empty(log)
echo "No log file found!"
return
endif
if g:latex_latexmk_autojump
execute 'cfile ' . log
else