lua-users home
lua-l archive

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

> I have problems using debug.traceback() with level but without message argument.
> The reference manual seems to indicate that both arguments are optional:
>     debug.traceback ([thread,] [message] [, level])
> But the following script demonstrates that it seems impossible to use debug.traceback() this way:
> [...]
> Is this a issue with the reference manual or with the implementation?

The manual is wrong. It should read like this:

      debug.traceback ([thread,] [message [, level]])

You can use nil as your message to specify a level without a message.

-- Roberto