summaryrefslogtreecommitdiff
path: root/configmgr/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-29 16:21:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-04 15:18:00 +0200
commit2c05d758b2b62c9df413e2514fb3cd233d0f3ec7 (patch)
treee0a23d3da6fb17ae97d18957fc14f4a4a8de2d3f /configmgr/source
parenta3088b1e72ef17babe3d3664c610afd02cfe0891 (diff)
add << operator for css::uno::Exception
Change-Id: Ia23dafd07133779144965682df3b7125a3214235 Reviewed-on: https://gerrit.libreoffice.org/43046 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'configmgr/source')
-rw-r--r--configmgr/source/components.cxx15
1 files changed, 5 insertions, 10 deletions
diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx
index 19516773173a..3b4111bc0fb9 100644
--- a/configmgr/source/components.cxx
+++ b/configmgr/source/components.cxx
@@ -186,9 +186,7 @@ void Components::WriteThread::execute() {
writeModFile(components_, url_, data_);
} catch (css::uno::RuntimeException & e) {
// Ignore write errors, instead of aborting:
- SAL_WARN(
- "configmgr",
- "error writing modifications: \"" << e.Message << '"');
+ SAL_WARN("configmgr", "error writing modifications: " << e);
}
} catch (...) {
reference_->clear();
@@ -404,8 +402,7 @@ void Components::insertModificationXcuFile(
} catch (css::container::NoSuchElementException & e) {
SAL_WARN(
"configmgr",
- "error inserting non-existing \"" << fileUri << "\": \""
- << e.Message << '"');
+ "error inserting non-existing \"" << fileUri << "\": " << e);
}
}
@@ -433,8 +430,7 @@ css::beans::Optional< css::uno::Any > Components::getExternalValue(
// installed:
SAL_WARN(
"configmgr",
- "createInstance(" << name << ") failed with \"" << e.Message
- << '"');
+ "createInstance(" << name << ") failed with " << e);
}
css::uno::Reference< css::beans::XPropertySet > propset;
if (service.is()) {
@@ -662,7 +658,7 @@ void Components::parseFileLeniently(
// starting:
SAL_WARN(
"configmgr",
- "error reading \"" << url << "\": \"" << e.Message << '"');
+ "error reading \"" << url << "\": " << e);
}
}
@@ -731,8 +727,7 @@ void Components::parseFileList(
try {
parseFileLeniently(parseFile, url, layer, nullptr, nullptr, adds);
} catch (css::container::NoSuchElementException & e) {
- SAL_WARN(
- "configmgr", "file does not exist: \"" << e.Message << '"');
+ SAL_WARN("configmgr", "file does not exist: " << e);
if (adds != nullptr) {
data_.removeExtensionXcuAdditions(url);
}