diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-06-04 16:52:51 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-06-04 16:57:55 +0200 |
commit | eb68bf18f2d859486c4a737abb2536a6afe45411 (patch) | |
tree | 197fe3527a5367556ea2c24959f26a9f63cbdf6d /tools/inc | |
parent | b6526cfa9070c5b9734c92ca20f16b16807b1031 (diff) |
Improve error reporting
Change-Id: Ib8017f950f414601676b54c36425a0592b4cc395
Diffstat (limited to 'tools/inc')
-rw-r--r-- | tools/inc/tools/diagnose_ex.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/inc/tools/diagnose_ex.h b/tools/inc/tools/diagnose_ex.h index f3aecf4f9822..72d11c48700c 100644 --- a/tools/inc/tools/diagnose_ex.h +++ b/tools/inc/tools/diagnose_ex.h @@ -44,6 +44,7 @@ #if OSL_DEBUG_LEVEL > 0 #include <com/sun/star/configuration/CorruptedConfigurationException.hpp> + #include <com/sun/star/task/ErrorCodeIOException.hpp> #include <cppuhelper/exc_hlp.hxx> #include <osl/diagnose.h> #include <osl/thread.h> @@ -85,6 +86,14 @@ specialized.Details, osl_getThreadTextEncoding() ); \ } \ } \ + { \ + ::com::sun::star::task::ErrorCodeIOException specialized; \ + if ( caught >>= specialized ) \ + { \ + sMessage += "\ndetails: "; \ + sMessage += ::rtl::OString::valueOf( specialized.ErrCode ); \ + } \ + } \ sMessage += "\n"; \ OSL_ENSURE( false, sMessage.getStr() ) |