lua-users home
lua-l archive

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


Hi,

In a related matter, pcall is supposed to return the error message,
but in fact returns whatever is passed to error()'s first argument.
Whether this is intended I am not sure.

I hope it is, because the feature is very useful. It allows
you to "throw" any Lua value with error() and "catch" it with pcall().

Regards,
Diego