diff --git a/autoload/codeium/server.vim b/autoload/codeium/server.vim index 01681b32..ff9c1c49 100644 --- a/autoload/codeium/server.vim +++ b/autoload/codeium/server.vim @@ -185,13 +185,12 @@ function! codeium#server#Start(...) abort let config = get(g:, 'codeium_server_config', {}) if has_key(config, 'portal_url') && !empty(config.portal_url) let response = system('curl -s ' . config.portal_url . '/api/version') - if v:shell_error + if v:shell_error == '0' let s:language_server_version = response let s:language_server_sha = 'enterprise-' . s:language_server_version else call codeium#log#Error('Failed to fetch version from ' . config.portal_url) call codeium#log#Error(v:shell_error) - call codeium#log#Error(v:stderr) endif endif