So if you had:
Code: Select all
function myHandler()
do_code()
end
Code: Select all
function myHandler()
local f = function ()
do_code()
end
local status, msg = pcall(f)
if not status then
display(msg)
end
end
Code: Select all
function myHandler()
do_code()
end
Code: Select all
function myHandler()
local f = function ()
do_code()
end
local status, msg = pcall(f)
if not status then
display(msg)
end
end