1
0
mirror of https://github.com/kepler155c/opus synced 2025-12-19 06:38:06 +00:00

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

@@ -92,7 +92,7 @@ function Routine:resume(event, ...)
term.redirect(previousTerm)
if not ok and self.haltOnError then
error(result)
error(result, -1)
end
if coroutine.status(self.co) == 'dead' then
Util.removeByValue(kernel.routines, self)