diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-11-10 10:21:52 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-11-10 10:21:52 -0800 |
commit | d90dff328697f64677d49e7022fbc08de8d4d2a1 (patch) | |
tree | 39b7e885d29ae865191489ec5e0608255d7039bd | |
parent | f86ebf6247e32f014342049b4caa666d22d063c0 (diff) | |
download | view.love-d90dff328697f64677d49e7022fbc08de8d4d2a1.tar.gz |
improve a name
-rw-r--r-- | app.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app.lua b/app.lua index f55c866..cff3483 100644 --- a/app.lua +++ b/app.lua @@ -44,7 +44,7 @@ end function handle_error(err) local callstack = debug.traceback('', --[[stack frame]]2) - Error_message = 'Error: ' .. tostring(err)..'\n'..clean_up_callstack(callstack) + Error_message = 'Error: ' .. tostring(err)..'\n'..cleaned_up_callstack(callstack) print(Error_message) if Current_app == 'run' then Settings.current_app = 'source' @@ -61,7 +61,7 @@ end -- rather than offload that to load(). -- Functions compiled in this manner have ugly filenames of the form [string "filename"] -- This function cleans out this cruft from error callstacks. -function clean_up_callstack(callstack) +function cleaned_up_callstack(callstack) local frames = {} for frame in string.gmatch(callstack, '[^\n]+\n*') do local line = frame:gsub('^%s*(.-)\n?$', '%1') |