From 6f0ddddff1b5e986a6b4879023600182fd32e82d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 11 Sep 2013 16:10:08 +0200 Subject: Improve debug output Change-Id: Ic7fee2d0ca95279d9809161a7f39480727b070e3 --- bridges/source/jni_uno/jni_base.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bridges') diff --git a/bridges/source/jni_uno/jni_base.h b/bridges/source/jni_uno/jni_base.h index 61fc28479585..3de1898c758a 100644 --- a/bridges/source/jni_uno/jni_base.h +++ b/bridges/source/jni_uno/jni_base.h @@ -115,8 +115,11 @@ inline bool JNI_context::assert_no_exception() const { if (JNI_FALSE != m_env->ExceptionCheck()) { + SAL_WARN("bridges", "unexpected java exception occurred"); +#if OSL_DEBUG_LEVEL > 0 + m_env->ExceptionDescribe(); +#endif m_env->ExceptionClear(); - OSL_FAIL( "unexpected java exception occurred!" ); return false; } return true; -- cgit v1.2.3