From 9e8793668fef9b30f9675639726e26d22933d1f8 Mon Sep 17 00:00:00 2001 From: Max Cahill <1bardesign@gmail.com> Date: Wed, 15 Jul 2020 14:16:55 +1000 Subject: [PATCH] [modified] async task error format easier to read - still need to move to embedded xpcall+stacktrace for more than 1 line of context though! --- async.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/async.lua b/async.lua index fa01726..05f8dc3 100644 --- a/async.lua +++ b/async.lua @@ -66,7 +66,9 @@ function async:update() if error_cb then error_cb(a) else - error("failure in async task: "..a) + local err = ("failure in async task:\n\n\t%s\n") + :format(tostring(a)) + error(err) end end --check done