summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-02-19 10:34:18 +0200
committerNoel Grandin <noel@peralex.com>2013-02-19 10:35:44 +0200
commita00f11b97b9fca70e6ed50fdc82ac731f4c47c90 (patch)
tree49e9c01a8b05b6400dc70f644baaebbae0bd73d0 /writerfilter
parent6475609e882c16c7536bbfa502e2f8341abfea6e (diff)
log the exception here instead of just asserting
.. to make future debugging easier. Change-Id: I8efc8d8d6f228d9a36d8bb0aebe57913f2af5637
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/NumberingManager.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/writerfilter/source/dmapper/NumberingManager.cxx b/writerfilter/source/dmapper/NumberingManager.cxx
index 23b72259873b..0f74fa786cc7 100644
--- a/writerfilter/source/dmapper/NumberingManager.cxx
+++ b/writerfilter/source/dmapper/NumberingManager.cxx
@@ -511,7 +511,7 @@ uno::Reference< container::XNameContainer > lcl_getUnoNumberingStyles(
oFamily >>= xStyles;
}
- catch ( const uno::Exception )
+ catch ( const uno::Exception & )
{
}
@@ -645,13 +645,15 @@ void ListDef::CreateNumberingRules( DomainMapper& rDMapper,
OUString sNumRulesName = aPropNameSupplier.GetName( PROP_NUMBERING_RULES );
xStyle->setPropertyValue( sNumRulesName, uno::makeAny( m_xNumRules ) );
}
- catch( const lang::IllegalArgumentException& )
+ catch( const lang::IllegalArgumentException& e )
{
- assert( !"Incorrect argument to UNO call" );
+ SAL_WARN( "writerfilter", "Exception: " << e.Message );
+ assert( !"Incorrect argument to UNO call" );
}
- catch( const uno::RuntimeException& )
+ catch( const uno::RuntimeException& e )
{
- assert( !"Incorrect argument to UNO call" );
+ SAL_WARN( "writerfilter", "Exception: " << e.Message );
+ assert( !"Incorrect argument to UNO call" );
}
catch( const uno::Exception& e )
{