lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>calling error() in the linehook is not aborting anything.

The manual says so:

  A hook cannot call lua_error. It must return to Lua through a regular
  return. (There is no problem if the error is inside a chunk or a Lua
  function called by the hook, because those errors are protected; the
  control returns to the hook anyway.)

>Are there other solutions?

Perhaps setting a global flag and testing it in the script?
--lhf