This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 6de02f1f46 [minor](jvm) add more error logs for JNI (#17270)
6de02f1f46 is described below
commit 6de02f1f46e486ec7b7fa8bdd4b3bf8af99b9091
Author: Gabriel <[email protected]>
AuthorDate: Wed Mar 1 22:09:57 2023 +0800
[minor](jvm) add more error logs for JNI (#17270)
---
be/src/util/jni-util.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/util/jni-util.cpp b/be/src/util/jni-util.cpp
index a5880c7268..a41e768e38 100644
--- a/be/src/util/jni-util.cpp
+++ b/be/src/util/jni-util.cpp
@@ -155,7 +155,7 @@ Status JniUtil::GetJNIEnvSlowPath(JNIEnv** env) {
rc = g_vm->AttachCurrentThread((void**)&tls_env_, nullptr);
}
if (rc != 0 || tls_env_ == nullptr) {
- return Status::InternalError("Unable to get JVM!");
+ return Status::InternalError("Unable to get JVM: {}", rc);
}
*env = tls_env_;
return Status::OK();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]