From ed7ba1b7b83f7695ededa0cace4de420aca8c602 Mon Sep 17 00:00:00 2001 From: Rodrigo Moyle Date: Tue, 1 Jul 2014 08:51:44 -0300 Subject: [PATCH] Fix a error when clover.xml file does not exists. --- autoload/Phpqa.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/Phpqa.vim b/autoload/Phpqa.vim index 0cdc379..7f0cbec 100644 --- a/autoload/Phpqa.vim +++ b/autoload/Phpqa.vim @@ -227,7 +227,9 @@ function! Phpqa#PhpCodeCoverage() echohl Error |echo "Not a valid or readable file"|echohl None endif endwhile - call AddCodeCoverageSigns(g:phpqa_codecoverage_file) + if filereadable(g:phpqa_codecoverage_file) + call AddCodeCoverageSigns(g:phpqa_codecoverage_file) + endif endf " }}}1 "=============================================================================