We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e1b968 commit ea33575Copy full SHA for ea33575
lua/opencode/promise.lua
@@ -193,11 +193,11 @@ function Promise:finally(callback)
193
local new_promise = Promise.new()
194
195
local handle_finally = function()
196
- local ok, _ = pcall(callback)
+ local ok, err = pcall(callback)
197
-- Ignore callback errors and result, finally doesn't change the promise chain
198
if not ok then
199
-- Log error but don't propagate it
200
- vim.notify('Error in finally callback', vim.log.levels.WARN)
+ vim.notify('Error in finally callback: ' .. tostring(err), vim.log.levels.WARN)
201
end
202
203
0 commit comments