Improve logging of Java exceptions
* src/android.c (android_exception_check): Print more detailed information.
This commit is contained in:
parent
60ed861b10
commit
ecb48e8d63
1 changed files with 5 additions and 0 deletions
|
@ -4923,6 +4923,11 @@ android_exception_check (void)
|
|||
{
|
||||
if ((*android_java_env)->ExceptionCheck (android_java_env))
|
||||
{
|
||||
__android_log_print (ANDROID_LOG_WARNING, __func__,
|
||||
"Possible out of memory error."
|
||||
" The Java exception follows: ");
|
||||
/* Describe exactly what went wrong. */
|
||||
(*android_java_env)->ExceptionDescribe (android_java_env);
|
||||
(*android_java_env)->ExceptionClear (android_java_env);
|
||||
memory_full (0);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue