ucb/source/ucp/file/filglob.cxx                                    |    5 ++++-
 unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx |    2 ++
 2 files changed, 6 insertions(+), 1 deletion(-)

New commits:
commit a446bfd0f379a2a976cf707c85a5f3c8ed68de0c
Author:     Stephan Bergmann <stephan.bergm...@allotropia.de>
AuthorDate: Mon Sep 23 22:25:44 2024 +0200
Commit:     Stephan Bergmann <stephan.bergm...@allotropia.de>
CommitDate: Tue Sep 24 07:55:00 2024 +0200

    Surround printed struct/exception members with {...}
    
    Change-Id: I41d661e5d89c784715e4e07a3c7f7f27737ba3e8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173831
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <stephan.bergm...@allotropia.de>

diff --git a/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx 
b/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx
index 19b84b8cbfb1..6811c9470104 100644
--- a/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx
+++ b/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx
@@ -124,6 +124,7 @@ void printUnoValue(
     case css::uno::TypeClass_STRUCT:
     case css::uno::TypeClass_EXCEPTION:
         {
+            out << '{';
             auto first = true;
             for (auto const & f: 
css::uno::Reference<css::reflection::XIdlClass>(
                      reflections->forName(type.getTypeName()),
@@ -137,6 +138,7 @@ void printUnoValue(
                 out << f->getName() << ": ";
                 printUnoValue(out, reflections, translateType(f->getType()), 
f->get(value));
             }
+            out << '}';
             break;
         }
     case css::uno::TypeClass_INTERFACE:
commit d7a608cc25f81c7c5de0edacf91b36cde2803410
Author:     Stephan Bergmann <stephan.bergm...@allotropia.de>
AuthorDate: Mon Sep 23 22:55:57 2024 +0200
Commit:     Stephan Bergmann <stephan.bergm...@allotropia.de>
CommitDate: Tue Sep 24 07:54:51 2024 +0200

    Make an exceptin message more informative
    
    Change-Id: Icdac7a7dc2f7b5a76fbbec996bc0e05ca1450a96
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173834
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <stephan.bergm...@allotropia.de>

diff --git a/ucb/source/ucp/file/filglob.cxx b/ucb/source/ucp/file/filglob.cxx
index 93fb4ad81a4d..6e42d975646c 100644
--- a/ucb/source/ucp/file/filglob.cxx
+++ b/ucb/source/ucp/file/filglob.cxx
@@ -41,6 +41,7 @@
 #include <com/sun/star/uno/Any.hxx>
 #include <com/sun/star/uno/Sequence.hxx>
 #include <o3tl/string_view.hxx>
+#include <o3tl/underlyingenumvalue.hxx>
 #include <osl/diagnose.h>
 #include <rtl/uri.hxx>
 #include <rtl/ustring.hxx>
@@ -365,7 +366,9 @@ namespace fileaccess {
                 ioErrorCode,
                 generateErrorArguments(aUncPath),
                 xEnv,
-                u"an error occurred during file opening"_ustr,
+                "an error occurred during file opening ("
+                    + OUString::number(o3tl::to_underlying(errorCode)) + "/"
+                    + OUString::number(minorCode) + ")",
                 xComProc);
         }
         else if( errorCode == TaskHandlerErr::OPEN_FOR_DIRECTORYLISTING  ||

Reply via email to