From f87c88b7c98e3b937f78f54cdd77cc69ebd8315b Mon Sep 17 00:00:00 2001 From: sb Date: Mon, 18 May 2009 14:59:23 +0200 Subject: #i101955# improved error reporting (improving previous -c acee60ce43e6) --- ucbhelper/source/client/content.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ucbhelper') diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index c82a0bc19b77..4a620b4b4074 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -341,12 +341,14 @@ static Reference< XContent > getContent( if ( xProvider.is() ) { Reference< XContent > xContent; + rtl::OUString msg; try { xContent = xProvider->queryContent( xId ); } - catch ( IllegalIdentifierException const & ) + catch ( IllegalIdentifierException const & e ) { + msg = e.Message; // handled below. } @@ -359,7 +361,7 @@ static Reference< XContent > getContent( throw ContentCreationException( rtl::OUString::createFromAscii( - "Unable to create Content!" ), + "Unable to create Content! " ) + msg, Reference< XInterface >(), ContentCreationError_CONTENT_CREATION_FAILED ); } -- cgit