Require fails silently on syntax error

In Lua, a require statement generally reports failure if there’s a syntax error in the required file. For example, I used “!” in place of “not” and get:

lua
> queue = require "queue"
error loading module 'queue' from file './queue.lua':
        ./queue.lua:142: unexpected symbol near '!'
stack traceback:
        [C]: in ?
        [C]: in function 'require'
        stdin:1: in main chunk
        [C]: in ?
>

But, running on an Ezlo, I never see this error in any log. Instead, I see in ha-luad.log:

2022-08-12 15:42:42.027110 ERROR: LuaInterpreter: Couldn't run a Lua code: [string "HUB:epyu_lee.epyu_forward_events/scripts/util..."]:37: attempt to call a nil value (method 'read')

at the point where client tries to use a function in the module that failed to load.

What’s going on?
Is there an easy way to do better?

Hi @Lee can you give more information please. Which hub/controller are you using, what is the fW etc…

Sure! Though it’ll help me if you ask more specific questions too, I’m not quite sure what you’re asking for with fW.

I’m using an Ezlo Plus that ezlogic.mios.com shows as having firmware version 2.0.29.2027.3. Product H2.1.
/etc/system_version 1.0.119. Lua 5.3.5.

Also, was there a release announcement for this firmware version?