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>
This commit is contained in:
parent
91c11939b4
commit
d7a608cc25
@ -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 ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user