From 69900696779c89084fe7e6a5be365b3453222462 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 26 Oct 2018 16:09:25 +0100 Subject: util.promise: Switch from pcall to xpcall to get tracebacks on exceptions --- util/promise.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/promise.lua b/util/promise.lua index a3bc59d2..b368f34e 100644 --- a/util/promise.lua +++ b/util/promise.lua @@ -15,7 +15,7 @@ local function wrap_handler(f, resolve, reject, default) return default; end return function (param) - local ok, ret = pcall(f, param); + local ok, ret = xpcall(f, debug.traceback, param); if ok then resolve(ret); else -- cgit v1.2.3