diff options
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/sbxmod.cxx | 4 | ||||
-rw-r--r-- | basic/source/runtime/runtime.cxx | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index 23a279485afa..7e65e2e588a2 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -20,6 +20,7 @@ #include <vcl/svapp.hxx> #include <tools/stream.hxx> +#include <tools/diagnose_ex.h> #include <svl/SfxBroadcaster.hxx> #include <basic/sbx.hxx> #include <basic/sbuno.hxx> @@ -145,7 +146,8 @@ DocObjectWrapper::DocObjectWrapper( SbModule* pVar ) : m_pMod( pVar ) } catch(const Exception& ) { - SAL_WARN( "basic", "DocObjectWrapper::DocObjectWrapper: Caught exception!" ); + css::uno::Any ex( cppu::getCaughtException() ); + SAL_WARN( "basic", "DocObjectWrapper::DocObjectWrapper: Caught exception! " << exceptionToString(ex) ); } } diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx index ea0d9ae69379..0e1ace2e349b 100644 --- a/basic/source/runtime/runtime.cxx +++ b/basic/source/runtime/runtime.cxx @@ -36,6 +36,7 @@ #include <sal/log.hxx> #include <tools/wldcrd.hxx> +#include <tools/diagnose_ex.h> #include <vcl/svapp.hxx> #include <vcl/settings.hxx> @@ -343,7 +344,8 @@ SbiInstance::~SbiInstance() } catch( const Exception& ) { - SAL_WARN("basic", "SbiInstance::~SbiInstance: caught an exception while disposing the components!" ); + css::uno::Any ex( cppu::getCaughtException() ); + SAL_WARN("basic", "SbiInstance::~SbiInstance: caught an exception while disposing the components! " << exceptionToString(ex) ); } } |