From d7a608cc25f81c7c5de0edacf91b36cde2803410 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 23 Sep 2024 22:55:57 +0200 Subject: [PATCH] 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 --- ucb/source/ucp/file/filglob.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 #include #include +#include #include #include #include @@ -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 ||