diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-01-21 21:46:00 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-01-21 21:46:00 +0000 |
commit | f177253cd12ae5806061972de29dadca3779c813 (patch) | |
tree | a2dee58e55da0d69bb089dd84b493a10f0056eed /desktop | |
parent | 926822b241e6c8037fbda650667637d83b2b7cc0 (diff) |
android: print out exception messages that escaped 'main'
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/sofficemain.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop/source/app/sofficemain.cxx b/desktop/source/app/sofficemain.cxx index 447948a04d53..8faa99f1415a 100644 --- a/desktop/source/app/sofficemain.cxx +++ b/desktop/source/app/sofficemain.cxx @@ -42,6 +42,9 @@ int SVMain(); extern "C" int DESKTOP_DLLPUBLIC soffice_main() { +#ifdef ANDROID + try { +#endif tools::extendApplicationEnvironment(); RTL_LOGFILE_PRODUCT_TRACE( "PERFORMANCE - enter Main()" ); @@ -65,6 +68,13 @@ extern "C" int DESKTOP_DLLPUBLIC soffice_main() } #endif return SVMain(); +#ifdef ANDROID + } catch (const ::com::sun::star::uno::Exception &e) { + fprintf (stderr, "Not handled UNO exception at main: '%s'\n", + rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr()); + throw e; // to get exception type printed + } +#endif } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |