[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Noob question -- On error, exit function and terminate script
- From: marbux <marbux@...>
- Date: Sat, 25 Jun 2011 11:35:04 -0700
On Sat, Jun 25, 2011 at 7:12 AM, Rebel Neurofog <email@example.com> wrote:
> assert () is the best in your case (more verbose)
Thank you, Rebel, and the others who responded; assert works for my use case.
BTW, I suggest that Reference Manual section 5.1 be amended to
indicate that assert and error will cause termination of the script
when their evaluations indicate an error condition. That information
is currently not included in their respective documentation sections.
See <http://www.lua.org/manual/5.1/manual.html#pdf-assert> and