aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/promise.lua2
1 files changed, 1 insertions, 1 deletions
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