We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60a29e6 commit a5606bcCopy full SHA for a5606bc
lua/dapui/client/lib.lua
@@ -53,7 +53,7 @@ return function(client)
53
54
---@param variable dapui.types.Variable
55
function client_lib.set_variable(container_ref, variable, value)
56
- local err = pcall(function()
+ local ok, err = pcall(function()
57
if client.session.capabilities.supportsSetExpression and variable.evaluateName then
58
local frame_id = client.session.current_frame and client.session.current_frame.id
59
client.request.setExpression({
@@ -74,7 +74,7 @@ return function(client)
74
)
75
end
76
end)
77
- if err then
+ if not ok then
78
util.notify(util.format_error(err))
79
80
0 commit comments