improve error reporting in JVMTI callbacks (Lua side)