Skip to content

Commit 4cf8c07

Browse files
[Android] Add error code to the assert error message (#80423)
1 parent bf069df commit 4cf8c07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/native/libs/System.Security.Cryptography.Native.Android

src/native/libs/System.Security.Cryptography.Native.Android/pal_jni.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ JNIEnv* GetJNIEnv(void)
648648
LOG_DEBUG("Registering JNI thread detach. env ptr %p. Key: %ld", (void*)env, (long)threadLocalEnvKey);
649649
pthread_setspecific(threadLocalEnvKey, env);
650650

651-
abort_unless(ret == JNI_OK, "Unable to attach thread to JVM");
651+
abort_unless(ret == JNI_OK, "Unable to attach thread to JVM (error: %d)", ret);
652652
return env;
653653
}
654654

0 commit comments

Comments
 (0)