Kaydet (Commit) 4bbc91d5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Better error reporting

Change-Id: Icb083795c9c00a9ca33c2a901b4183b81c98918c
üst 47160402
...@@ -319,12 +319,13 @@ sal_Bool MigrationImpl::doMigration() ...@@ -319,12 +319,13 @@ sal_Bool MigrationImpl::doMigration()
result = sal_True; result = sal_True;
} }
catch (...) catch (css::uno::Exception & e)
{ {
OString aMsg("An unexpected exception was thrown during migration"); SAL_WARN(
aMsg += "\nOldVersion: " + OUStringToOString(m_aInfo.productname, RTL_TEXTENCODING_ASCII_US); "desktop.migration",
aMsg += "\nDataPath : " + OUStringToOString(m_aInfo.userdata, RTL_TEXTENCODING_ASCII_US); "ignored Exception \"" << e.Message
OSL_FAIL(aMsg.getStr()); << "\" while migrating from version \"" << m_aInfo.productname
<< "\" data \"" << m_aInfo.userdata << "\"");
} }
// prevent running the migration multiple times // prevent running the migration multiple times
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment