summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2011-08-20 18:03:34 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2011-08-21 01:46:10 +0200
commiteb6621d43753b07d002aaaa8ce1ae22e8d2ab316 (patch)
treea85569be49ded08595075f2ef1b6aca53d98971d
parentac2359cf8440c3e04c08566fdf576850f83e6601 (diff)
scripting: make a debug build log uncaught exception when loading a provider
Also put a newline between "Error creating provider from factory" and message of the exception raised by the provider load
-rw-r--r--scripting/source/provider/ProviderCache.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripting/source/provider/ProviderCache.cxx b/scripting/source/provider/ProviderCache.cxx
index 26b77467ddaa..5a3e42066449 100644
--- a/scripting/source/provider/ProviderCache.cxx
+++ b/scripting/source/provider/ProviderCache.cxx
@@ -128,6 +128,7 @@ ProviderCache::getAllProviders() throw ( RuntimeException )
{
::rtl::OUString temp = OUSTR( "ProviderCache::getAllProviders: failed to create provider, " );
temp.concat( e.Message );
+ DBG_UNHANDLED_EXCEPTION();
//throw RuntimeException( temp.concat( e.Message ),
// Reference< XInterface >() );
}
@@ -207,7 +208,7 @@ ProviderCache::createProvider( ProviderDetails& details ) throw ( RuntimeExcepti
}
catch ( RuntimeException& e )
{
- ::rtl::OUString temp(RTL_CONSTASCII_USTRINGPARAM("ProviderCache::createProvider() Error creating provider from factory!!!"));
+ ::rtl::OUString temp(RTL_CONSTASCII_USTRINGPARAM("ProviderCache::createProvider() Error creating provider from factory!!!\n"));
throw RuntimeException( temp.concat( e.Message ), Reference< XInterface >() );
}