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
> <> 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:

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.