diff --git a/src/native/libs/System.Security.Cryptography.Native.Android/pal_jni.c b/src/native/libs/System.Security.Cryptography.Native.Android/pal_jni.c index 40de62da26c45b..f780f5a9f4747f 100644 --- a/src/native/libs/System.Security.Cryptography.Native.Android/pal_jni.c +++ b/src/native/libs/System.Security.Cryptography.Native.Android/pal_jni.c @@ -644,7 +644,7 @@ JNIEnv* GetJNIEnv() LOG_DEBUG("Registering JNI thread detach. env ptr %p. Key: %ld", (void*)env, (long)threadLocalEnvKey); pthread_setspecific(threadLocalEnvKey, env); - abort_unless(ret == JNI_OK, "Unable to attach thread to JVM"); + abort_unless(ret == JNI_OK, "Unable to attach thread to JVM (error: %d)", ret); return env; }