Skip to content

Commit ed7ba1b

Browse files
author
Rodrigo Moyle
committed
Fix a error when clover.xml file does not exists.
1 parent ebc2721 commit ed7ba1b

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)