lua-users home
lua-l archive

Re: What is the equivalent of die() command of perl

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


2009年9月10日 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
>> Well error("message") would work, but you would also get a stack
>> trace, which is not always so friendly for your users.
>
> You could do this:
> debug.traceback=nil
> error("message")
Also if the script is embedded in a host application and run through
lua_pcall you don't get the stack trace unless an errfunc is explictly
provided.

AltStyle によって変換されたページ (->オリジナル) /