aerospike / aerospike-client-java

Aerospike Java Client Library
Other
237 stars 214 forks source link

When compiling lua, the client discards the exception which has the lua compilation error details. #315

Closed griffinjm closed 7 months ago

griffinjm commented 7 months ago

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.

BrianNichols commented 7 months ago

Your pull request has been accepted and will appear in the next java client release.

griffinjm commented 7 months ago

Great, thank you.