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:
Uli Schlachter 2015-08-08 13:08:21 +02:00
parent a166f86864
commit d122b825ee

View file

@ -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 = {}