mirror of
https://github.com/rayaman/multi.git
synced 2026-09-05 07:27:35 -04:00
Push error when an error happens
This commit is contained in:
+1
-3
@@ -179,10 +179,8 @@ runTest = thread:newFunction(function()
|
||||
ec = ec + os.execute("lua tests/threadtests.lua p")
|
||||
multi.print("Testing lanes threading")
|
||||
ec = ec + os.execute("lua tests/threadtests.lua l")
|
||||
if ec > 0 then
|
||||
if ec ~= 0 then
|
||||
os.exit(1)
|
||||
else
|
||||
os.exit()
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -251,7 +251,6 @@ multi:newThread("Scheduler Thread",function()
|
||||
|
||||
we_good = true
|
||||
multi:Stop() -- Needed in love2d tests to stop the main runner
|
||||
os.exit()
|
||||
end).OnError(multi.error)
|
||||
|
||||
multi.OnExit(function(err_or_errorcode)
|
||||
|
||||
Reference in New Issue
Block a user