bugfix: don't run car.load on syntax errors

This commit is contained in:
Kartik K. Agaram 2024-03-12 23:48:34 -07:00
parent 3c4ed9f0f8
commit fe1ef039e6
1 changed files with 2 additions and 2 deletions

View File

@ -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