summaryrefslogtreecommitdiff
path: root/ucbhelper
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2009-05-18 14:59:23 +0200
committersb <sb@openoffice.org>2009-05-18 14:59:23 +0200
commitf87c88b7c98e3b937f78f54cdd77cc69ebd8315b (patch)
tree6461bb06cc2227d7c01bd2ff213af4bdb10e65e1 /ucbhelper
parent7dabeb48fed10d15232f54350e7e08dc1a5c84b2 (diff)
#i101955# improved error reporting (improving previous -c acee60ce43e6)
Diffstat (limited to 'ucbhelper')
-rw-r--r--ucbhelper/source/client/content.cxx6
1 files changed, 4 insertions, 2 deletions
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 );
}