However, if I write a suicide.lua script:
Code: Select all
thisFunctionDoesNotExist(1/0)
Am I missing something?
Code: Select all
thisFunctionDoesNotExist(1/0)
Code: Select all
if debugging then
function catch_and_rethrow(func, ...)
local function parse_pcall_results(succ, err, ...)
if succ then
return table.unpack({err, ...})
else
print('Caught error: '..err)
return error(err)
end
end
return parse_pcall_results(pcall(func, ...))
end
else
function catch_and_rethrow(func, ...)
return func(...)
end
end
Code: Select all
result = catch_and_rethrow(suspect_function, arg1, arg2, ...)
© KVR Audio, Inc. 2000-2024
Submit: News, Plugins, Hosts & Apps | Advertise @ KVR | Developer Account | About KVR / Contact Us | Privacy Statement