I read about error () and pcall () in the Lua Doc, but that doesn't get me anywhere actually, since pcall only returns a bolean wheather the function given produced an error or not and error () apparently is only able to raise errors.
The problem with pcall is that apparently I have no way to access any return values of the given function. E.g.:
function foo (x)
return x.value * 42
end
-- this returns only true or false, but I'd rather have x.value * 42 and still being able to catch any errors in case bar is not a table
bar = {value = 1}
retvar = pcall (foo, bar)












