better errors + modules as devices (try #2) + pretty lua output

This commit is contained in:
kepler155c@gmail.com
2019-03-17 23:54:44 -04:00
parent 340636806c
commit e5312ca6ab
5 changed files with 38 additions and 20 deletions

View File

@@ -67,7 +67,7 @@ function Routine:resume(event, ...)
end
if not s and event ~= 'terminate' then
error('\n' .. (m or 'Error processing event'))
error(m or 'Error processing event', -1)
end
return s, m