Fix traceback in gears.protected_call (#1178)

The traceback should not include the error handler because this is confusing.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-10-22 00:54:08 +02:00 committed by Daniel Hahler
parent 289dfd1615
commit ed3aac711d
1 changed files with 1 additions and 1 deletions

View File

@ -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, ...)