diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-08-19 11:58:47 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-08-19 12:27:19 +0100 |
commit | 9950fc4f657ebc389185006137143e9782deccfc (patch) | |
tree | 3861b684e9e7c0cf47d28e19e9514e9d97109462 /desktop | |
parent | d27d1489770666fe1d44f832882b67ac507033cd (diff) |
print fatal UNO exceptions' text in a friendly way from OpenClients failures
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/app.cxx | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 4a02c288acaf..786ca4d1a511 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -2199,16 +2199,21 @@ IMPL_LINK( Desktop, OpenClients_Impl, void*, EMPTYARG ) { RTL_LOGFILE_PRODUCT_CONTEXT( aLog, "PERFORMANCE - DesktopOpenClients_Impl()" ); - OpenClients(); + try { + OpenClients(); - OfficeIPCThread::SetReady(); + OfficeIPCThread::SetReady(); - CloseSplashScreen(); - CheckFirstRun( ); - EnableOleAutomation(); + CloseSplashScreen(); + CheckFirstRun( ); + EnableOleAutomation(); - if (getenv ("OOO_EXIT_POST_STARTUP")) - new ExitTimer(); + if (getenv ("OOO_EXIT_POST_STARTUP")) + new ExitTimer(); + } catch (const ::com::sun::star::uno::Exception &e) { + String a( RTL_CONSTASCII_USTRINGPARAM( "UNO exception during client open:\n" ) ); + Application::Abort( a + e.Message ); + } return 0; } |