From d122b825ee3ebdf66399998e13a234415ad58185 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 8 Aug 2015 13:08:21 +0200 Subject: [PATCH] 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 --- lib/gears/timer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gears/timer.lua b/lib/gears/timer.lua index cda03b3b6..135f95794 100644 --- a/lib/gears/timer.lua +++ b/lib/gears/timer.lua @@ -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 = {}