reset font size on error

This commit is contained in:
Kartik K. Agaram 2024-07-09 21:36:52 -07:00
parent 8a02f1d7af
commit e9c4ca3743
1 changed files with 1 additions and 0 deletions

View File

@ -386,6 +386,7 @@ function live.handle_error(err)
local callstack = debug.traceback('', --[[stack frame]]2)
local cleaned_up_error = 'Error: ' .. cleaned_up_frame(tostring(err))..'\n'..cleaned_up_callstack(callstack)
live.send_run_time_error_to_driver(cleaned_up_error)
love.graphics.setFont(love.graphics.newFont(20))
Error_message = 'Something is wrong. Sorry!\n\n'..cleaned_up_error..'\n\n'..
"(Note: function names above don't include outer tables. So functions like on.draw might show up as just 'draw', etc.)\n\n"..
'Options:\n'..