lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> On Sat, Jun 25, 2011 at 12:19 PM, Lorenzo Donati
> <lorenzodonatibz@interfree.it> wrote:
>> I must nevertheless admit that the description for assert is slightly vague:
>>
>> "Issues an error when the value of its argument v is false (i.e., nil or
>> false);..."

The assert() function documentation isn't such a great spot to collect
all the information on error handling in lua.

"error" has an explicit meaning, its described here:

http://www.lua.org/manual/5.1/manual.html#2.7

which contains links to error() and pcall(), reading the description
of all the related functions is a good idea: pcall(), assert(),
lua_pcall(), lua_atpanic(), etc...

Maybe search the manual for the string "error", or just read it top-to-bottom.

Cheers,
Sam