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
|
print = print_to_output
|
||||||
-- ## run
|
-- ## run
|
||||||
local error = eval_all()
|
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
|
-- ## run: save some stuff, clean up the rest
|
||||||
if error == nil then
|
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
|
Show_code = nil
|
||||||
else
|
else
|
||||||
print = Real_print
|
print = Real_print
|
||||||
|
|
Loading…
Reference in New Issue