sfx2/source/doc/objstor.cxx |   15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

New commits:
commit 4114f8e21a6b6a7733764ab23e02e3f30f846902
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Thu Nov 3 10:52:16 2022 -0400
Commit:     Henry Castro <hcas...@collabora.com>
CommitDate: Tue Dec 6 18:11:50 2022 +0000

    sfx2: add log information to catch the exception
    
    Add log information for data analysis if the ExportTo
    fails due to an exception.
    
    Signed-off-by: Henry Castro <hcas...@collabora.com>
    Change-Id: I888545da14f413a970faf50b3ce60d12966f3f9e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142201
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>

diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 9ec5d7980296..c56efca7cf8f 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -2492,8 +2492,19 @@ bool SfxObjectShell::ExportTo( SfxMedium& rMedium )
         }
 
         return xFilter->filter( aArgs );
-        }catch(...)
-        {}
+        }
+        catch (const css::uno::RuntimeException & e)
+        {
+            SAL_INFO("sfx.doc", "ExportTo: " << e);
+        }
+        catch (const std::exception & e)
+        {
+            SAL_INFO("sfx.doc", "ExportTo: " << e.what());
+        }
+        catch(...)
+        {
+            SAL_INFO("sfx.doc", "ExportTo: Unknown exception!");
+        }
     }
 
     return false;

Reply via email to