From e9c4ca3743abf8bea64a6362df375743638a46b3 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 9 Jul 2024 21:36:52 -0700 Subject: [PATCH] reset font size on error --- live.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/live.lua b/live.lua index 93e9152..124d582 100644 --- a/live.lua +++ b/live.lua @@ -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'..