Skip to content

Commit

Permalink
fix: provide full stacktrace when provider errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Oct 26, 2024
1 parent 6511b0e commit 80156d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/overseer/template/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ M.list = function(opts, cb)
true
)
else
local ok, tmpls = pcall(provider.generator, opts, provider_cb)
local ok, tmpls = xpcall(provider.generator, debug.traceback, opts, provider_cb)
if ok then
if tmpls then
-- if there was a return value, the generator completed synchronously
Expand Down

0 comments on commit 80156d8

Please sign in to comment.