[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua.c dolibrary not installing traceback - bug or by design?
- From: roberto@... (Roberto Ierusalimschy)
- Date: Mon, 3 Sep 2007 14:27:57 -0300
> Let load.lua contain this:
>
> function f() error'fail' end; f()
>
> Running any of these produces an error and traceback:
>
> lua load.lua
> lua -e 'require "load.lua"'
>
> But running this produces an error with no traceback:
>
> lua -lload
>
> This occurs because dolibrary in lua.c does not install traceback. It could do
> so if the pcall is replaced with a docall as in dofile and dostring.
>
> Is this behavior intentional?
Not at all. This is a bug. Thanks for the report.
-- Roberto