summaryrefslogtreecommitdiff
path: root/xmlreader/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-04-18 14:43:04 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-04-18 14:43:04 +0200
commitc5c3b6d9513407ce79060c1024759bb538d9a3d9 (patch)
treec382c64d4ed626b7dbb65a51221f178613bc6310 /xmlreader/source
parent7a799fc6ada8d3e5ea2bd0b2617e3a8e7405997a (diff)
Improved error reporting
Diffstat (limited to 'xmlreader/source')
-rw-r--r--xmlreader/source/xmlreader.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmlreader/source/xmlreader.cxx b/xmlreader/source/xmlreader.cxx
index 08456625a0f9..9d197c7a336e 100644
--- a/xmlreader/source/xmlreader.cxx
+++ b/xmlreader/source/xmlreader.cxx
@@ -95,15 +95,15 @@ XmlReader::XmlReader(rtl::OUString const & fileUrl)
osl_File_MapFlag_WillNeed);
}
if (e != osl_File_E_None) {
- e = osl_closeFile(fileHandle_);
- if (e != osl_File_E_None) {
+ oslFileError e2 = osl_closeFile(fileHandle_);
+ if (e2 != osl_File_E_None) {
SAL_WARN(
"xmlreader",
- "osl_closeFile of \"" << fileUrl_ << "\" failed with " << +e);
+ "osl_closeFile of \"" << fileUrl_ << "\" failed with " << +e2);
}
throw css::uno::RuntimeException(
- (rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("cannot mmap ")) +
- fileUrl_),
+ ("cannot mmap " + fileUrl_ + " (" +
+ rtl::OUString::valueOf(static_cast< sal_Int32 >(e)) + ")"),
css::uno::Reference< css::uno::XInterface >());
}
namespaceIris_.push_back(