mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
style: cleanup & annotations
This commit is contained in:
parent
02f5528aa3
commit
9179c0a14d
4 changed files with 42 additions and 38 deletions
|
@ -52,11 +52,11 @@ function M.try(fn, msg)
|
|||
end
|
||||
level = level + 1
|
||||
end
|
||||
msg = msg .. "\n\n" .. err
|
||||
if #trace > 0 then
|
||||
msg = msg .. "\n\n# stacktrace:\n" .. table.concat(trace, "\n")
|
||||
end
|
||||
vim.schedule(function()
|
||||
msg = msg .. "\n\n" .. err
|
||||
if #trace > 0 then
|
||||
msg = msg .. "\n\n# stacktrace:\n" .. table.concat(trace, "\n")
|
||||
end
|
||||
M.error(msg)
|
||||
end)
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue