Skip to content

Commit f7224ea

Browse files
committed
Merge pull request #24 from rodrigorm/master
Fix error when clover.xml file does not exists.
2 parents 9a0c63f + ed7ba1b commit f7224ea

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

autoload/Phpqa.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ function! Phpqa#PhpCodeCoverage()
227227
echohl Error |echo "Not a valid or readable file"|echohl None
228228
endif
229229
endwhile
230-
call AddCodeCoverageSigns(g:phpqa_codecoverage_file)
230+
if filereadable(g:phpqa_codecoverage_file)
231+
call AddCodeCoverageSigns(g:phpqa_codecoverage_file)
232+
endif
231233
endf
232234
" }}}1
233235
"=============================================================================

0 commit comments

Comments
 (0)