summaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2020-05-05 19:15:52 +0300
committerTor Lillqvist <tml@collabora.com>2020-05-06 07:02:25 +0200
commita8c8192e3f4ef922465f0f1462fa4e1cd3fe2c8d (patch)
tree7d5bfcdc2d94b0d3a22e02571ea47527f893575b /desktop
parentThrow exceptions with useful messages (diff)
downloadcore-a8c8192e3f4ef922465f0f1462fa4e1cd3fe2c8d.tar.gz
core-a8c8192e3f4ef922465f0f1462fa4e1cd3fe2c8d.zip
On iOS, avoid catching exceptions to just immediately exit or abort anyway
It is better to let the exception be uncaught and then catch that in the debugger. (Maybe even inspect its backtrace from a crash dump automatically sent from an end-user device.) Change-Id: Ice02d5cbd7f4a59eae7ce8a9fac47dec8b234a5e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93505 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/app.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index 59d6a0db378f..dda31df281e9 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -1618,7 +1618,9 @@ int Desktop::Main()
}
// call Application::Execute to process messages in vcl message loop
+#ifndef IOS
try
+#endif
{
#if HAVE_FEATURE_JAVA
// The JavaContext contains an interaction handler which is used when
@@ -1638,6 +1640,7 @@ int Desktop::Main()
Execute();
}
}
+#ifndef IOS
catch(const css::document::CorruptedFilterConfigurationException& exFilterCfg)
{
RequestHandler::SetDowning();
@@ -1663,6 +1666,7 @@ int Desktop::Main()
RequestHandler::SetDowning();
FatalError( "Caught Unknown Exception: Aborting!");
}
+#endif
}
else
{