diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-29 16:21:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-04 15:18:00 +0200 |
commit | 2c05d758b2b62c9df413e2514fb3cd233d0f3ec7 (patch) | |
tree | e0a23d3da6fb17ae97d18957fc14f4a4a8de2d3f /desktop/source/migration | |
parent | a3088b1e72ef17babe3d3664c610afd02cfe0891 (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 'desktop/source/migration')
-rw-r--r-- | desktop/source/migration/migration.cxx | 8 | ||||
-rw-r--r-- | desktop/source/migration/services/oo3extensionmigration.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/desktop/source/migration/migration.cxx b/desktop/source/migration/migration.cxx index 7361419637f9..e03a103766bd 100644 --- a/desktop/source/migration/migration.cxx +++ b/desktop/source/migration/migration.cxx @@ -206,7 +206,7 @@ void Migration::migrateSettingsIfNecessary() try { bResult = aImpl.doMigration(); } catch (const Exception& e) { - SAL_WARN( "desktop", "doMigration() exception: " << e.Message); + SAL_WARN( "desktop", "doMigration(): " << e); } OSL_ENSURE(bResult, "Migration has not been successful"); } @@ -294,7 +294,7 @@ bool MigrationImpl::doMigration() } catch (css::uno::Exception & e) { SAL_WARN( "desktop.migration", - "ignored Exception \"" << e.Message + "ignored Exception \"" << e << "\" while migrating from version \"" << m_aInfo.productname << "\" data \"" << m_aInfo.userdata << "\""); } @@ -805,7 +805,7 @@ uno::Reference< XNameAccess > MigrationImpl::getConfigAccess(const sal_Char* pPa sAccessSrvc, theArgs ), uno::UNO_QUERY_THROW ); } catch (const css::uno::Exception& e) { SAL_WARN( - "desktop.migration", "ignoring Exception \"" << e.Message << "\""); + "desktop.migration", "ignoring Exception \"" << e << "\""); } return xNameAccess; } @@ -884,7 +884,7 @@ void MigrationImpl::runServices() } catch (const Exception& e) { SAL_WARN( "desktop", "Execution of migration service failed (Exception caught).\nService: " << i_mig->service - << "\nMessage: " << e.Message); + << "\nMessage: " << e); } catch (...) { SAL_WARN( "desktop", "Execution of migration service failed (Exception caught).\nService: " << i_mig->service << "\nNo message available"); diff --git a/desktop/source/migration/services/oo3extensionmigration.cxx b/desktop/source/migration/services/oo3extensionmigration.cxx index fb1458767139..98281a3ecc4e 100644 --- a/desktop/source/migration/services/oo3extensionmigration.cxx +++ b/desktop/source/migration/services/oo3extensionmigration.cxx @@ -287,7 +287,7 @@ void OO3ExtensionMigration::migrateExtension( const OUString& sSourceDir ) SAL_WARN( "desktop.migration", "Ignoring UNO Exception while migrating extension from <" - << sSourceDir << ">: \"" << e.Message << "\""); + << sSourceDir << ">: " << e); } } |