[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Error Reporting
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 24 Jul 2009 20:35:26 -0300
> In my case I want less information. The default error string looks
> something like
>
> [string "<code>"]:<line_number>: <error_message>
If you're loading Lua code with loadstring, use the optional second
argument to give an empty chunkname, as in
loadstring("a(2)","=")
Then the error message will be
:1: attempt to call global 'a' (a nil value)