The LuaC.instance.compile() method throws an exception which states the exact error and token it errored on. The java client catches that exception and throws a more generic "failed to read" exception message. Currently a client user must set breakpoints to see the actual error, the client should instead wrap the original exception instead of simply discarding it. This will preserve the original error details in the stack trace.
The
LuaC.instance.compile()
method throws an exception which states the exact error and token it errored on. The java client catches that exception and throws a more generic "failed to read" exception message. Currently a client user must set breakpoints to see the actual error, the client should instead wrap the original exception instead of simply discarding it. This will preserve the original error details in the stack trace.