summaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-01-21 21:46:00 +0000
committerMichael Meeks <michael.meeks@suse.com>2012-01-21 21:46:00 +0000
commitf177253cd12ae5806061972de29dadca3779c813 (patch)
treea2dee58e55da0d69bb089dd84b493a10f0056eed /desktop
parentandroid: don't add -I/usr/include to the compile line - urk (diff)
downloadcore-f177253cd12ae5806061972de29dadca3779c813.tar.gz
core-f177253cd12ae5806061972de29dadca3779c813.zip
android: print out exception messages that escaped 'main'
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/sofficemain.cxx10
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: */