diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-10-04 12:28:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-10-04 12:30:13 +0100 |
commit | 4e4bfa470c5376e77aa15c40ae9fa970da962829 (patch) | |
tree | 393309e965709644e8dd813cbe5c6887c832b89c /desktop/source | |
parent | d5a5be9e7d29cad539d6870c251988fd5490db6d (diff) |
verbose error message please
Diffstat (limited to 'desktop/source')
-rw-r--r-- | desktop/source/app/app.cxx | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 1cb3f30819af..fb1da9102718 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -767,18 +767,19 @@ void Desktop::InitFinished() // on Unix command line args needs to be checked before Desktop::Init() void Desktop::ensureProcessServiceFactory() { - if (!comphelper::getProcessServiceFactory().is()) { - try { + if (!comphelper::getProcessServiceFactory().is()) + { + try + { comphelper::setProcessServiceFactory( CreateApplicationServiceManager()); - } catch (css::uno::Exception & e) { - OSL_TRACE( - OSL_LOG_PREFIX "caught UNO exception with message \"%s\"", - rtl::OUStringToOString( - e.Message, RTL_TEXTENCODING_UTF8).getStr()); + } + catch (const css::uno::Exception& e) + { + OSL_FAIL(rtl::OUStringToOString(e.Message, osl_getThreadTextEncoding()).getStr()); + // let exceptions escape and tear down the process, it is + // completely broken anyway throw; - // let exceptions escape and tear down the process, it is - // completely broken anyway } } } |