[vim] Do not print error message on exit status 1

This commit is contained in:
Junegunn Choi 2014-07-04 18:35:04 +09:00
parent 91401514ab
commit 89298a8d23

View File

@ -137,8 +137,11 @@ function! s:execute(dict, command, temps)
execute 'silent !'.command
redraw!
if v:shell_error
echohl Error
echo 'Error running ' . command
" Do not print error message on exit status 1
if v:shell_error > 1
echohl ErrorMsg
echo 'Error running ' . command
endif
return []
else
return s:callback(a:dict, a:temps, 0)