Skip to content

Commit

Permalink
fix: avoid ignorable error in ubuntu 22.04+ (yetone#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghosert authored Nov 25, 2024
1 parent 4c9dd65 commit 7413d5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/avante/selection.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ function Selection:create_editing_input()
---@type AvanteCompleteParser
local on_complete = function(err)
if err then
-- NOTE: in Ubuntu 22.04+ you will see this ignorable error from ~/.local/share/nvim/lazy/avante.nvim/lua/avante/llm.lua `on_error = function(err)`, check to avoid showing this error.
if type(err) == "table" and err.exit == nil and err.stderr == "{}" then return end
Utils.error(
"Error occurred while processing the response: " .. vim.inspect(err),
{ once = true, title = "Avante" }
Expand Down

0 comments on commit 7413d5a

Please sign in to comment.