[modified] async task error format easier to read - still need to move to embedded xpcall+stacktrace for more than 1 line of context though!

This commit is contained in:
Max Cahill 2020-07-15 14:16:55 +10:00
parent 5230e8f9d6
commit 9e8793668f

View File

@ -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