Exceptions/Catch an exception thrown in a nested call: Difference between revisions

Content added Content deleted
Line 893: Line 893:
function foo()
function foo()
function callbar()
function callbar()
local no_err,result = pcall(bar)
local no_err,result = pcall(bar)
--pcall is a protected call which catches errors.
--pcall is a protected call which catches errors.