[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: bad error message for error() when called with thread
- From: Diego Nehab <diego@...>
- Date: Mon, 17 Dec 2007 22:20:10 -0500 (EST)
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().