summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2024-09-23 22:55:57 +0200
committerStephan Bergmann <stephan.bergmann@allotropia.de>2024-09-24 07:54:51 +0200
commitd7a608cc25f81c7c5de0edacf91b36cde2803410 (patch)
treec00a69e45f0736c2f4a9f4f6f75467b022165a8b
parent91c11939b477a0542edb05c45cd735752accbb40 (diff)
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.bergmann@allotropia.de>
-rw-r--r--ucb/source/ucp/file/filglob.cxx5
1 files changed, 4 insertions, 1 deletions
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 ||