Skip to content
Snippets Groups Projects
Commit 136f53a3 authored by Alex Ksandra's avatar Alex Ksandra
Browse files

More error handling.

parent 1af3a570
No related branches found
No related tags found
No related merge requests found
......@@ -965,7 +965,14 @@ function _M:talentDialog(d)
dialog_returns_list[#dialog_returns_list+1] = d
local co = coroutine.running()
d.unload = function(self) coroutine.resume(co, dialog_returns[d]) end
d.unload = function(self)
local ok, err = coroutine.resume(co, dialog_returns[d])
if not ok and err then
print(debug.traceback(co))
self:onTalentLuaError(err)
error(err)
end
end
local ret = coroutine.yield()
dialog_returns[d] = nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment