From ed3aac711d4646a6dec0c676ab47cb93cc29a0ad Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 22 Oct 2016 00:54:08 +0200 Subject: [PATCH] Fix traceback in gears.protected_call (#1178) The traceback should not include the error handler because this is confusing. Signed-off-by: Uli Schlachter --- lib/gears/protected_call.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gears/protected_call.lua b/lib/gears/protected_call.lua index a237bec7c..c182e1497 100644 --- a/lib/gears/protected_call.lua +++ b/lib/gears/protected_call.lua @@ -13,7 +13,7 @@ local xpcall = xpcall local protected_call = {} local function error_handler(err) - gdebug.print_error(traceback("Error during a protected call: " .. tostring(err))) + gdebug.print_error(traceback("Error during a protected call: " .. tostring(err), 2)) end local function handle_result(success, ...)