Skip to content

Commit

Permalink
fix: edit variables (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
szaffarano authored Jul 13, 2024
1 parent 60a29e6 commit a5606bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/dapui/client/lib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ return function(client)

---@param variable dapui.types.Variable
function client_lib.set_variable(container_ref, variable, value)
local err = pcall(function()
local ok, err = pcall(function()
if client.session.capabilities.supportsSetExpression and variable.evaluateName then
local frame_id = client.session.current_frame and client.session.current_frame.id
client.request.setExpression({
Expand All @@ -74,7 +74,7 @@ return function(client)
)
end
end)
if err then
if not ok then
util.notify(util.format_error(err))
end
end
Expand Down

0 comments on commit a5606bc

Please sign in to comment.