Skip to content

Commit

Permalink
error handling for missing gzip (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
cprn authored Oct 5, 2023
1 parent 8bc1d19 commit 3ba37a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoload/codeium/server.vim
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ function! s:UnzipAndStart(status) abort
let &shellcmdflag = old_shellcmdflag
let &shellredir = old_shellredir
else
if !executable('gzip')
call codeium#log#Error('Failed to extract language server binary: missing `gzip`.')
return ''
endif
call system('gzip -d ' . s:bin . '.gz')
call system('chmod +x ' . s:bin)
endif
Expand Down

0 comments on commit 3ba37a1

Please sign in to comment.