minor cleanup

This commit is contained in:
kepler155c@gmail.com
2020-05-25 21:48:37 -06:00
parent 1cce4aad03
commit a4f4f34576
5 changed files with 14 additions and 12 deletions

View File

@@ -60,7 +60,7 @@ function Routine:resume(event, ...)
end
if not s and event ~= 'terminate' then
if m and debug and debug.traceback then
if m and type(debug) == 'table' and debug.traceback then
local t = (debug.traceback(self.co, 1)) or ''
m = m .. '\n' .. t:match('%d\n(.+)')
end