minor cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user