Version logging: minor cleanup.

This commit is contained in:
LCD 47 2015-01-31 08:19:15 +02:00
parent b9608e77be
commit cf012bdea8
2 changed files with 2 additions and 3 deletions

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif
let g:_SYNTASTIC_VERSION = '3.6.0-9'
let g:_SYNTASTIC_VERSION = '3.6.0-10'
lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1

View File

@ -81,8 +81,7 @@ function! g:SyntasticChecker.getVersion(...) " {{{2
if !exists('self._version')
let command = a:0 ? a:1 : self.getExecEscaped() . ' --version'
let version_output = system(command)
call syntastic#log#debug( g:_SYNTASTIC_DEBUG_CHECKERS,
\ self._filetype . '/' . self._name . ': output of ' . string(command) . ': ' .
call self.log('getVersion: ' . string(command) . ': ' .
\ string(split(version_output, "\n", 1)) .
\ (v:shell_error ? ' (exit code ' . v:shell_error . ')' : '') )
call self.setVersion(syntastic#util#parseVersion(version_output))