Skip to content

Commit

Permalink
fix(server): protect against responses with no status (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter authored Sep 4, 2024
1 parent 1513aef commit fc5a68d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/codeium/server.vim
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function! s:HandleGetStatusResponse(out, err, status) abort
if a:status == 0
" Parse the JSON response
let response = json_decode(join(a:out, "\n"))
let status = response.status
let status = get(response, 'status', {})
" Check if there is a message in the response and echo it
if has_key(status, 'message') && !empty(status.message)
echom status.message
Expand Down

0 comments on commit fc5a68d

Please sign in to comment.