Kaydet (Commit) f177253c authored tarafından Michael Meeks's avatar Michael Meeks

android: print out exception messages that escaped 'main'

üst 926822b2
...@@ -42,6 +42,9 @@ int SVMain(); ...@@ -42,6 +42,9 @@ int SVMain();
extern "C" int DESKTOP_DLLPUBLIC soffice_main() extern "C" int DESKTOP_DLLPUBLIC soffice_main()
{ {
#ifdef ANDROID
try {
#endif
tools::extendApplicationEnvironment(); tools::extendApplicationEnvironment();
RTL_LOGFILE_PRODUCT_TRACE( "PERFORMANCE - enter Main()" ); RTL_LOGFILE_PRODUCT_TRACE( "PERFORMANCE - enter Main()" );
...@@ -65,6 +68,13 @@ extern "C" int DESKTOP_DLLPUBLIC soffice_main() ...@@ -65,6 +68,13 @@ extern "C" int DESKTOP_DLLPUBLIC soffice_main()
} }
#endif #endif
return SVMain(); 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: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment