[Dev-luatex] tex.sp error handling

Taco Hoekwater taco at elvenkind.com
Mon Oct 11 16:22:57 CEST 2010

On 10/11/2010 02:39 PM, Patrick Gundlach wrote:
> Hi,
> if I understand things right, this code will not reach the second
> line.
> local ret = tex.sp("1cow")
> print(type(ret))


> Instead, TeX stops (at least in my source code, I could have done
> something wrong) with "Illegal unit of measure (pt inserted)". Would
> it be possible to have some nicer error handling? For example to
> return [ nil, "Illegal unit of measure (pt inserted)"] ?

Make a tracker item for it, and I will implement that. No time now,
but it pretty simple.

Best wishes,

More information about the dev-luatex mailing list