[NTG-context] \ctxlua and \startluacode ... \stopluacode

Taco Hoekwater taco at elvenkind.com
Mon Oct 14 21:26:58 CEST 2019


> On 14 Oct 2019, at 21:08, Rudolf Bahr <quasi at quasi.de> wrote:
> 2. But in the case of an not existing file (BBB.lua) the known error message comes up
>   again:
>   "token call, execute: [ctxlua]:8: /home/sam/context-tests/BBB.lua: No such file or 
>    directory".
>    This, of course, is true, but shouldn't be mentioned in an error message!

If you do not want the error message, don’t use assert(). You can just do 

f = io.open(...)
If f then ... else ... end

Best wishes,

More information about the ntg-context mailing list