restricted system commands enabled.
**lua-errors.tex
(./lua-errors.tex[\directlua]:1: plain error
stack traceback:
[C]: in function 'error'
[\directlua]:1: in main chunk.
l.2 \directlua{error("plain error")}
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.
[\directlua]:1: attempt to index a nil value (local 'x')
stack traceback:
[\directlua]:1: in main chunk.
l.3 \directlua{local x = nil; x.y = 1}
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.
[\directlua]:1: incorrect character value -1 for tex.getcatcode()
stack traceback:
[C]: in function 'tex.getcatcode'
[\directlua]:1: in main chunk.
l.4 \directlua{tex.getcatcode(-1)}
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.
[\directlua]:1: bad argument #1 to 'getmath' (invalid option 'foo')
stack traceback:
[C]: in function 'tex.getmath'
[\directlua]:1: in main chunk.
l.5 \directlua{tex.getmath("foo", "text")}
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.
[\directlua]:1: bad argument #1 to 'rep' (string expected, got no value)
stack traceback:
[C]: in function 'string.rep'
[\directlua]:1: in main chunk.
l.6 \directlua{string.rep()}
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.
[\directlua]:1: incorrect character value -1 for tex.getcatcode()
stack traceback:
[C]: in function 'tex.getcatcode'
[\directlua]:1: in local 'f'
[\directlua]:1: in main chunk.
l.7 ...al function f() tex.getcatcode(-1) end f()}
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.
[\directlua]:1: inner
stack traceback:
[C]: in function 'error'
[\directlua]:1: in local 'f'
[\directlua]:1: in main chunk.
l.8 ...{local function f() error("inner") end f()}
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.
noloc
stack traceback:
[C]: in function 'error'
[\directlua]:1: in main chunk.
l.9 \directlua{error("noloc", 0)}
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.
)
No pages of output.