If we're already in source editor we'll quit as before.
It's ugly that app.lua now knows about run.lua. But it's a start.
IZGZEWFGSMVXXFGMBITHUZUSFAJGWZNBE7LR7PCZ52P2JEO5HAUQC
function handle_error(err)
Error_message = debug.traceback('Error: ' .. tostring(err), --[[stack frame]]2):gsub('\n[^\n]+$', '')
print(Error_message)
if Current_app == 'run' then
Settings.current_app = 'source'
love.filesystem.write('config', json.encode(Settings))
load_file_from_source_or_save_directory('main.lua')
App.undo_initialize()
App.run_tests_and_initialize()
else
love.event.quit()
end
end