bugfix: don't run car.load on syntax errors
This commit is contained in:
parent
3c4ed9f0f8
commit
fe1ef039e6
|
@ -5,10 +5,10 @@ run_app = function()
|
|||
print = print_to_output
|
||||
-- ## run
|
||||
local error = eval_all()
|
||||
if car.load then call_protected(car.load) end
|
||||
if car.initialize then call_protected(car.initialize) end
|
||||
-- ## run: save some stuff, clean up the rest
|
||||
if error == nil then
|
||||
if car.load then call_protected(car.load) end
|
||||
if car.initialize then call_protected(car.initialize) end
|
||||
Show_code = nil
|
||||
else
|
||||
print = Real_print
|
||||
|
|
Loading…
Reference in New Issue