Skip to content

Commit

Permalink
fix (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
fortenforge authored Oct 4, 2024
1 parent f74306e commit 9ff8d32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions autoload/codeium/server.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9ff8d32

Please sign in to comment.