about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-11-10 16:40:36 -0800
committerKartik K. Agaram <vc@akkartik.com>2023-11-10 16:40:36 -0800
commita1da45228ae5e242a8087f8833dfd578011211e7 (patch)
tree7f38ca84d1971f4a3854c60bb9139cfa99e6b2ae
parent3007ea001406e5df96c353621f023425e52d10cb (diff)
parentd90dff328697f64677d49e7022fbc08de8d4d2a1 (diff)
downloadtext.love-a1da45228ae5e242a8087f8833dfd578011211e7.tar.gz
Merge lines.love
-rw-r--r--app.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/app.lua b/app.lua
index a2f1f78..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,9 +61,8 @@ 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 = {}
-  print(callstack)
   for frame in string.gmatch(callstack, '[^\n]+\n*') do
     local line = frame:gsub('^%s*(.-)\n?$', '%1')
     local filename, rest = line:match('([^:]*):(.*)')