lua-users home
lua-l archive

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


Hi Lua Team!

The description of `error` says:

"Terminates the last protected function called and returns message as the error object. This function never returns."

Which is quite confusing (especially for newbies).

I'd suggest a change like:

"Terminates the last protected function called and raises (throws?) an error having message as the error object. This function never returns."

This issue is in the manual of both Lua 5.3.5 and Lua 5.4.0-rc3 (actually it's the same wording since 5.1).

-- Lorenzo