diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2011-08-20 18:03:34 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2011-08-21 01:46:10 +0200 |
commit | eb6621d43753b07d002aaaa8ce1ae22e8d2ab316 (patch) | |
tree | a85569be49ded08595075f2ef1b6aca53d98971d /scripting | |
parent | pyuno: close opened parenthesis in raised exception message (diff) | |
download | core-eb6621d43753b07d002aaaa8ce1ae22e8d2ab316.tar.gz core-eb6621d43753b07d002aaaa8ce1ae22e8d2ab316.zip |
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
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/provider/ProviderCache.cxx | 3 |
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 >() ); } |