mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
gears.timer: Fix the traceback on errors
With the second argument being 2, the traceback will not include the error handling function, but instead end at the actual place of the error. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
a166f86864
commit
d122b825ee
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ capi.awesome.connect_signal("refresh", function()
|
|||
local success, message = xpcall(function()
|
||||
callback[1](unpack(callback, 2))
|
||||
end, function(err)
|
||||
print(debug.traceback("Error during delayed call: "..tostring(err)))
|
||||
print(debug.traceback("Error during delayed call: "..tostring(err), 2))
|
||||
end)
|
||||
end
|
||||
delayed_calls = {}
|
||||
|
|
Loading…
Reference in a new issue